출처: https://bumcrush.tistory.com/182 [맑음때때로 여름]

1
2
3
4
5
6
7
8
9
10
11
12
13
            int n=0;
            
            for(int j=00 ; j<9 ; j++) {
                
                if(j<5
                    n++;
                else n--;
                
                for (int i =0; i<n; i++) {
                    System.out.print("*");
                }
                System.out.println();
            }
cs

+ Recent posts