|
|
|
|
|
|
|
|
|
|
Yorick
1.2.4.1: The while and do while statementsThe while loop is simpler than the for loop:
The body_statement --- very oten a compound statement enclosed in curly braces --- executes over and over until the condition becomes false. If the condition is false to begin with, body_statement never executes. Occasionally, you want the body_statement to execute and set the condition before it is tested for the first time. In this case, use the do while statement:
|