Skip to content

Instantly share code, notes, and snippets.

@ssd863419
Created May 2, 2014 01:08
Show Gist options
  • Save ssd863419/b3f898d5beda80dc0fa9 to your computer and use it in GitHub Desktop.
Save ssd863419/b3f898d5beda80dc0fa9 to your computer and use it in GitHub Desktop.
99乘法表
public class Test {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
if (i*j <10 ) {
System.out.print(i + "*" + j + "= " + i*j + " | ");
}else{
System.out.print(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