Day 29 -What I Learned In Day (JAVA) Today I learned about Looping Statements in Java, especially the for loop and do-while loop . 🔹 What is a Do-While Loop? A do-while loop is an exit-controlled loop that executes the code at least once, even if the condition is false. Syntax: do { // statements } while(condition); 🔹 What is a For Loop? A for loop is an entry-controlled loop that checks the condition before execution. It is mainly used when the number of iterations is known. Syntax: for(initialization; condition; increment/decrement) { // statements } Practiced 👇 #Java #Programming #Loops #LearningJourney #100DaysOfCode #CodingPractice

To view or add a comment, sign in

Explore content categories