public class Multiplication { public static void main(String[] s) { for(int n=1; n<=10; n++) { for(int i=1; i<=10; i++) { System.out.println( n + " * " + i + " = " + n*i ); } System.out.println(); } /* n=5; // 5 * 1 = 5 // 5 * 2 = 10 // ... for(int i=1; i<=10; i++) { System.out.println( n + " * " + i + " = " + n*i ); } */ } }