For Loop Example in Java Program

Опубликовано: 28 Август 2026
на канале: LogicLoops26
15
0

☕ Java Series – Day 19 | Multiplication Table Using for Loop in Java

Welcome to Day 19 of the Java Series by LogicLoops26!

In today's video, we'll create a simple Multiplication Table Program in Java using the for loop. This program will help you understand how loops can be used to repeat an operation efficiently.

📚 Topics Covered:
✅ Taking user input using Scanner
✅ Using the for loop
✅ Understanding initialization, condition, and increment
✅ Multiplication using the loop
✅ Printing a multiplication table from 1 to 10
✅ Step-by-step program explanation

💻 Example:

If the user enters 5, the program prints:

5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
...
5 x 10 = 50

💡 Key Concept:

Instead of writing the multiplication operation 10 times, we use a for loop to repeat the operation automatically.

🎯 Java Series Progress:

✔️ Day 1 – What is Java?
✔️ Day 2 – Features of Java
✔️ Day 3 – JDK vs JRE vs JVM
✔️ Day 4 – Java Compilation & Execution Process
✔️ Day 5 – First Java Program
✔️ Day 6 – Variables (Theory)
✔️ Day 7 – Variables in Java Program
✔️ Day 8 – Data Types (Theory)
✔️ Day 9 – Data Types in Java Program
✔️ Day 10 – Type Casting
✔️ Day 11 – Operators (Theory)
✔️ Day 12 – Operators Program
✔️ Day 13 – Scanner Class
✔️ Day 14 – Conditional Statements (Theory)
✔️ Day 15 – Conditional Statements (Programs)
✔️ Day 16 – Switch Statement (Theory)
✔️ Day 17 – Switch Statement (Program)
✔️ Day 18 – Loops (Theory)
✔️ Day 19 – Printing numbers from 1 to 10 using for loop

➡️ Next Video: More practical programs using the for loop.

📝 Practice Challenge:
Modify the program to print the multiplication table from 10 to 20.

💬 Try it yourself and share your answer in the comments!

👍 Like | Comment | Share | Subscribe 🔔
Follow LogicLoops26 for daily Java learning.

#Java #ForLoop #MultiplicationTable #CoreJava #LearnJava #JavaTutorial #JavaProgramming #Programming #Coding #JavaForBeginners #JavaInterview #LogicLoops26