Advertisement
sedran

multiplicationTable()

Apr 26th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public static void multiplicationTable() {
  2.    for(int i=1; i<=10; i++) {
  3.       for(int k=1; k<=10; k++) {
  4.          System.out.print((i*k));
  5.          if( k<10 ) {
  6.             System.out.print("\t");
  7.          }
  8.       }
  9.       if( i<10 ) {
  10.          System.out.print("\n");
  11.       }
  12.    }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement