Last active
January 5, 2023 14:07
-
-
Save FeelingXD/ba0e1d2fd80e1616f1ec4de583422630 to your computer and use it in GitHub Desktop.
구구단 프로그램
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
작성자: 고지민 | |
*/ | |
//구구단 | |
//with oracle open jdk 1.8 | |
public class Main { | |
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.printf("%02d x %02d = %02d %-5s",i,j,i*j,""); | |
} | |
System.out.println(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment