Skip to content

Instantly share code, notes, and snippets.

@FeelingXD
Last active January 5, 2023 14:07
Show Gist options
  • Save FeelingXD/ba0e1d2fd80e1616f1ec4de583422630 to your computer and use it in GitHub Desktop.
Save FeelingXD/ba0e1d2fd80e1616f1ec4de583422630 to your computer and use it in GitHub Desktop.
구구단 프로그램
/*
작성자: 고지민
*/
//구구단
//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