do while with integer counter : do while « Statement « PHP






do while with integer counter

 
<?php
    $count = 11;
    do {
        echo "$count squared = ".pow($count,2). "<br />";
    } while ($count < 10);
?>
  
  








Related examples in the same category

1.Counting to 10 with do ... while
2.Do-While Loop
3.do while loop with counter
4.do...while loop is executed at least once
5.Break in Nested Loops
6.Do while loop
7.The do...while Statement