Java Program to Generate Multiplication Table of the Input Number
Too Long; Didn't Read
The first method is long and time-consuming whereas the second one needs fewer lines of code but it is not beginners friendly. The second method requires basic knowledge of the while loop. In the first method, the first number is getting printed two times. The first number gets printed if you multiply it by 1, the number itself is printed by 1. The other method uses a while loop to print a multiplication table from 1 to 10 times with an increment. The program can be solved by two methods, one of which is very difficult.