Created
May 16, 2024 11:25
-
-
Save Exom9434/2a9ec348b4afdee6157cdeb856b7c285 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
//노재경 | |
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++) { | |
int times = i * j; | |
String result = String.format("%02d x %02d = %02d\t", j, i, times); | |
System.out.printf(result); | |
} | |
System.out.println(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment