Advertisements
Advertisements
Question
Write short notes on Do while Loop.
Short/Brief Note
Advertisements
Solution
- Do while loop always run the statement inside of the loop block at the first time execution.
- Then it is checking the condition whether true or false.
- It executes the loop if the specified condition is true.

Do While loop Structure and Flow Chart
Syntax:
do {
code to be executed;
} while (condition is true);shaalaa.com
Looping Structure
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Loops that iterate for fixed number of times is called ______.
Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
for ($ x=0; $ x<5; x++)
echo “Hai”
The above loop executes how many no of times?
Define for loop in PHP.
Write Syntax of while loop in PHP.
Write Syntax of Do while loop in PHP.
Compare for loop and for each loop.
Write the purpose of Looping Structure in PHP.
Differentiate While and Do while loops.
Explain concepts of for loop with example.
