-
4. control - (2) Gugudan2 (구구단 출력)java/코드 리뷰 2020. 3. 20. 12:03123456789101112131415161718package control;public class Gugudan2 {public static void main(String[] args) {int dan = 0;for (int i=1; i<=9; i++) {for(int j=2; j<=9; j++) {dan = i * j;System.out.print(j + " * " + i + " = " + dan);System.out.print("\t");}System.out.println();}}}
'java > 코드 리뷰' 카테고리의 다른 글
4. control - (2) IfDemo2 (if문 - 짝수홀수) (0) 2020.03.20 4. control - (1) IfDemo1 (if문) (0) 2020.03.20 4. control - (1) Gugudan1 (구구단 출력) (0) 2020.03.20 4. control - (5) ForDemo5 (For문) (0) 2020.03.20 4. control - (4) ForDemo4 (For문) (0) 2020.03.20