Last Updated: 09 July, 2022
In Math, a table (or multiplication table) is a sequence of numbers that are generated through multiplication.
I am hoping you all know what is a table and how to write it but in this page we are going to learn how to print a table for any number in Java Programming.
We are printing the table in two ways:
Output
Enter Number: 5
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
Output
Enter Number: 8
8 * 1 = 8
8 * 2 = 16
8 * 3 = 24
8 * 4 = 32
8 * 5 = 40
8 * 6 = 48
8 * 7 = 56
8 * 8 = 64
8 * 9 = 72
8 * 10 = 80
That's all guys, hope this Java Program is helpful for you.
Happy Learning... 😀
feedback@javabytechie.com