This repository contains Java programs demonstrating the use of loops (for
, while
, and do-while
) from Module 3. It includes practice exercises and a mini project (Number Guessing Game) to help beginners understand loops, user input, and basic programming logic.
- MultiplicationTable.java
- Prompts the user to enter a number.
- Displays the multiplication table from 1 to 10 using a
for
loop.
for
loop- User input using
Scanner
Open the folder in VS Code or any Java IDE. Compile the program you want to run: javac MultiplicationTable.java Run the program: java MultiplicationTable