Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

do while loop

<?php
	$num=1;
	do{
		$num++;
		echo"The number is ".$num."<br>";
	}
	while($num<=5);
	
//======output=====
/*
The number is 2
The number is 3
The number is 4
The number is 5
The number is 6
*/

?>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
1+8 =