Skip to content

Instantly share code, notes, and snippets.

@zhyunk
Created March 6, 2023 16:40
Show Gist options
  • Save zhyunk/cde30ea04819fba21fca70c497a2f0e7 to your computer and use it in GitHub Desktop.
Save zhyunk/cde30ea04819fba21fca70c497a2f0e7 to your computer and use it in GitHub Desktop.
과제 1 피드백 반영!
/*
* [과제 1. 큰솔 화면에 구구단 출력하기] 의 피드백 반영!
*
* 작성자 : 김지현
* 작성일 : 2023-03-06
* */
public class MiniAssignment01InFeedback {
public static void main(String[] args) {
String tab = "\t";
System.out.println("[구구단 출력]");
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
if (j == 9) tab = "";
System.out.print(String .format("%02d x %02d = %02d%s", j, i, j * i, tab));
}
tab = "\t";
System.out.println();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment