The “while” loop, Syntax
•
•
•
•
while( boolean_expression )
•
{
•
statements…
•
}
•
•
So long as the boolean_expression is true the
statements will be executed over and over.
x = 2. x = 1