자바_기초
While - * 계단형으로 그리기
잠수콩
2019. 5. 21. 15:20
// *
// **
// ***
public class WhileEx_1 {
public static void main(String[] args) {
int i = 1;
while(i < 4) {
int j = 1;
while(j <= i) {
System.out.print("*");
j++;
}
System.out.println();
i++;
}
}
}