본문 바로가기
하지의 코딩일지/JAVA TEST

구구단 출력(테스트)

by 하지마지 2023. 7. 5.
728x90
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

public class JavaStudy01 {
public JavaStudy01() {
}

public static void main(String[] args) {
System.out.println("[구구단 출력]");

for(int i = 1; i <= 9; ++i) {
for(int j = 1; j <= 9; ++j) {
System.out.print(j + " x " + i + " = " + String.format("%2d", i * j));
System.out.print(" ");
}

System.out.println();
}

}
}
728x90