![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbM2Nln%2FbtrE8SOSfYK%2Fntzul6l6nuQZXAPM4fxrfK%2Fimg.png)
[Java] While문을 이용한 구구단 출력하기
2022. 6. 19. 10:38
자바/연습
package ch03; public class While99dan { public static void main(String[] args) { int row = 2; while(row < 10) { int column = 1; while(column < 10) { System.out.printf("%4d", row * column); column ++; } System.out.println(); row ++; // 각 단이 끝나면 다음 단으로 } } }