Java program to print multiplication table
Write a Java program that takes a number as input and prints its multiplication table upto 10.
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);
Connect with us on following platforms
PRACTICALS/PRACTICE PROGRAM IN Java
CHECKOUT OTHER RELATED TOPICS
We are aiming to explain all concepts of Java in easiest terms as possible.