Mega Code Archive

 
Categories / Java Tutorial / JSP
 

Using the while Loop

< HTML>   <HEAD>     <TITLE>Using the while Loop</TITLE>   </HEAD>   <BODY>     <H1>Using the while Loop</H1>     <%         int value = 5;         while (value > 0) {             out.println("The value is now " + value-- + ".<BR>");         }     %>   </BODY> </HTML>