Java Program to Generate Multiplication Table

In this program, you'll learn to generate multiplication table of a given number. This is done by using a for and a while loop in Java.


Generate Multiplication Table using For Loop


Generate Multiplication Table using While Loop


When you run the program, the output will be:

1 x 5 = 5
2 x 5 = 10
3 x 5 = 15
4 x 5 = 20
5 x 5 = 25
6 x 5 = 30
7 x 5 = 35
8 x 5 = 40
9 x 5 = 45
10 x 5 = 50
11 x 5 = 55
12 x 5 = 60

Post a Comment

Thank you for vising

أحدث أقدم