Skip to content

Instantly share code, notes, and snippets.

@Exom9434
Created May 16, 2024 11:25
Show Gist options
  • Save Exom9434/2a9ec348b4afdee6157cdeb856b7c285 to your computer and use it in GitHub Desktop.
Save Exom9434/2a9ec348b4afdee6157cdeb856b7c285 to your computer and use it in GitHub Desktop.
//노재경
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