- // Multiplication Table
- import java.io.*;
- class ssvmulti
- {
- public static void main(String args[]) throws IOException
- {
- System.out.print("\n\tEnter number :" );
- BufferedReader ip = new BufferedReader(new InputStreamReader(System.in));
- int num= Integer.parseInt(ip.readLine());
- System.out.println("\n\n\n\t\tMULTIPLICATION TABLE OF 5");
- System.out.print("\n\n\n");
- for(int i = 1;i<=20;i++)
- { int sum = i * num;
- if (i<10)
- System.out.println("\t\t\t " + i + " * " + num + " = " + sum);
- else
- System.out.println("\t\t\t" + i + " * " + num + " = " + sum);
- } // end of for
- } // end of main
- } // end of class
In this program, easy to understand to calculate Multiplication Table using Java Program
