Advertisements
Advertisements
प्रश्न
Write short notes on Do while Loop.
टिप्पणी लिखिए
Advertisements
उत्तर
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
The loop exclusively used for arrays is _____.
Loops that iterate for fixed number of times is called ______.
Consider the following code
<? php
$count=12;
do{
printf(“%d squared=%d<br/>”,
$count, pow($count,2));
} while($count<4);
?>
What will be the output of the code.
What will be the output of the following PHP code?
<?php
for ($x = 1; $x < 10;++$x)
{
print “*\t”;
}
?>Define for loop in PHP.
Write Syntax of For each loop in PHP.
Write Syntax of Do while loop in PHP.
Compare for loop and for each loop.
Discuss in detail about Foreach loop.
Explain working of loops in array.
