-result
*
**
***
****
*****
****
***
**
*
-coding
for(int a=0; a<=4; a++){
for(int b=0;b<=a;b++){
System.out.printf("*");
}System.out.println();
}
for (int c=1; c<=4; c++){
for (int d=c; d<=4; d++){
System.out.print("*");
}System.out.println();
}

댓글 없음:
댓글 쓰기