Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

while loop

<?php
	$num=1;
	while($num<=5)
	{
		echo"The number is ".$num."<br>";
		$num++;
	}
	
//======output=====
/*
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
*/
?>
Source by sites.google.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
5+6 =