Skip to content

Instantly share code, notes, and snippets.

@tedheich
Created November 26, 2009 01:39
Show Gist options
  • Save tedheich/243165 to your computer and use it in GitHub Desktop.
Save tedheich/243165 to your computer and use it in GitHub Desktop.
Code to generat Multiplication table - this seems to be a famous assignments for students
class MultiplicationTable {
public static void main(String []args) {
int rows=10;
int columns=10;
for(int i=1;i<=rows;i++) {
for(int j=1;j<=columns;j++){
System.out.print(i*j + "\t");
}
System.out.print("\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment