자바_기초
While - 2단 부터 9단까지
잠수콩
2019. 5. 21. 15:19
// 2단 부터 9단까지
public class WhileEx {
public static void main(String[] args) {
int x = 2;
while(x < 10) {
int y = 1;
while(y < 10) {
System.out.println(x + " * " + y + " = " + (x * y));
y++;
}
x++;
System.out.println();
}
}
}