Skip to content

Instantly share code, notes, and snippets.

@kim975
kim975 / JavaStudy01.java
Last active May 16, 2024 06:59
과제 1 - 콘솔 화면에 구구단 출력하기
//김용민
public class 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(String.format("%02d x %02d = %02d ", j, i, j*i));
}
System.out.println();
}