*****
***
*
public static void main(String[] args) {
for(int a=0;a<3;a++) {
for(int i=0;i<2-a;i++) {
System.out.print(" ");
}
for(int j=0;j<=2*a;j++) {
System.out.print("*");
}
System.out.println();
}
}
'Test > JAVA Test' 카테고리의 다른 글
숫자 랜덤 총합, 평균 (0) | 2023.05.14 |
---|---|
학생 점수 랜덤으로 생성 (0) | 2023.05.14 |
별찍기02 (0) | 2023.05.14 |
별찍기01 (0) | 2023.05.14 |
a부터 b까지 출력 (0) | 2023.05.14 |