# Java program to Display Multiplication Table

```1 2 3 4 5 6 7 8 9 10 11 12 class MultiplicationTable{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); System.out.println("*****MULTIPLICATION TABLE*****"); for(int i=1;i<=num;i++){ for(int j=1;j<=num;j++){ System.out.print(" "+i*j+" "); } System.out.print("\n"); } } }```

### 14 Responses to “Java program to Display Multiplication Table”

1. Lakshminarayanan

Here the correct code……

import java.util.Scanner;

public class multip{

public static void main(String arg[])
{
int i,k;
Scanner in=new Scanner(System.in);
System.out.println(“Enter the multiplication table number “);
i=in.nextInt();
for(int j=1; j<=10; j++)
{
k=i*j;
System.out.println(i+" * "+j+" = "+k);
}
}
}

2. Jaswinder-Singh

import java.io.*;
class jh
{
public static void main(String args[])throws IOException
{
int a,b,c=1;
System.out.println(“Enter The No=”);
for(c=1;c<=10;c++)
{
b=a*c;
System.out.println(b);
}
}
}

3. AhmedAhnaf

public class Tables {
public static void main(String[] args) {
int i,k;
System.out.println(“Multiplication table from 1 to 100”);
for(int z=1;z<=100;z++){
for(int j=1; j<=10; j++)
{
k=z*j;
System.out.println(j+" * "+z+" = "+k);
}
System.out.print("\n");
}
}
}