Java Program to Display Multiplication Table of Any Number

Here you will get java program to find multiplication table of given number.

class Table
{
	public static void main(String...s)
	{
		int n,i;
		n=Integer.parseInt(s[0]);
		
		for(i=1;i<=10;++i)
			System.out.println(n+" * "+i+" = "+(n*i));
	}
}

 

Output
Java program to display multiplication table of any number

1 thought on “Java Program to Display Multiplication Table of Any Number”

Leave a Comment

Your email address will not be published. Required fields are marked *