Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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 sites.google.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
1+3 =