, and if true the body of the loop is executed, then the condition is tested again. This process continues until the condition becomes false (or a break statement is executed). The syntax for a while loop appears below:</P>

<PRE><CODE><B>while</B> (<I>condition</I>) <I>body</I></CODE></PRE>

<P>It is very common to use a compound statement as the body of a loop:</P>

<PRE><CODE><B>while</B> (x &lt; 10)
{
x = x+1;
y = y*2;
}</CODE></PRE>

</BODY>
</HTML>
