Last active
July 3, 2023 05:04
-
-
Save dongsub-joung/7fda658f67ee01a04ce800bb8c9bd6db to your computer and use it in GitHub Desktop.
the MultiplicationTable print
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 MultiplicationTable { | |
public static void main(String[] args) { | |
System.out.println("[구구단 출력]"); | |
for (int first=1; first<=9; first++){ | |
for (int sec=1; sec<=9; sec++){ | |
System.out.print(String.format("%02d X %02d = %2d ", sec,first, first*sec)); | |
} | |
System.out.println(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment