public static void main(String[] args) {
		for (int i = 2; i <= 9; i++) {
			//i는 앞의 숫자, j는 뒤의 숫자, i*j는 결과값
			for (int j = 1; j <= 9; j++) {
				System.out.printf("%dx%d=%d\t", i, j, i * j);
			}
			System.out.printf("\n");
		}
	}

 

'java > java exercise' 카테고리의 다른 글

It will thank you until you're satisfied.  (0) 2020.01.25
Calculate and display Student Grades  (0) 2020.01.25
Dice Game  (0) 2020.01.25
Changing Letter case  (0) 2020.01.25
Game 369  (0) 2020.01.25