A simple Java program that generates a multiplication table for a given number. This project is useful for beginners who want to practice loops, user input, and basic arithmetic operations in Java.
- Takes a number as input
- Generates the multiplication table for that number
- Easy to understand and beginner-friendly
- Written in Java
- Java
- Scanner class for user input
- Loop statements
The program asks the user to enter a number.
Then it uses a loop to display the multiplication table for that number.
Example:
If the user enters 5, the program will display:
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50