The while Statement
A while statement has the following syntax:
while (condition)
statement;
If the condition is true, the statement is executed; then the condition is evaluated again
The statement is executed over and over until the condition becomes false
Previous slide
Next slide
Back to first slide
View graphic version