Using the while Loop : Statements « JSP « Java
- Java
- JSP
- Statements
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>
Related examples in the same category