Java Program to print Multiplication Table

This is the simple program from which we can print the table of integeraccording to our choice.

In this program we are using “for loop” which will display the table.

import java.util.Scanner;
class MultiplicationTable
{
   public static void main(String args[])
   {
      int n, c;
      System.out.println(“Enter integer to print it’s multiplication table”);
      Scanner in = new Scanner(System.in);
      n = in.nextInt();
      System.out.println(“Multiplication table of “+n+” is :-“);
      for ( c = 1 ; c <= 10 ; c++ )
         System.out.println(n+”*”+c+” = “+(n*c));
   }
}
Output : 
Share Your Comments
Previous Java Program to print Alphabets
Next Dental Clinic Management System (DCM) VB.Net

About author

Aamir Shaikh
Aamir Shaikh 1705 posts

<p>A Blogger, SEO Analyst and passionate Web Developer from India.<br /> Believes in hard work and continues working to achieve success.</p>

View all posts by this author →

You might also like