Table of Contents
Java program to print multiplication table
Write a Java program that takes a number as input and prints its multiplication table upto 10.
Write a Java program that takes a number as input and prints its multiplication table upto 10.
import java.util.*;
public class Demo
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Enter any number : ");
int num = in.nextInt();
for(int i=1; i<=10; i++)
{
System.out.println(i + " x " + num + " = " + i*num);
}
}
}
Output

PRACTICALS/PRACTICE PROGRAM IN Java
CHECKOUT OTHER RELATED TOPICS
We are aiming to explain all concepts of Java in easiest terms as possible.

ITVoyagers
Author