while()… statement has the following syntax:
while( continuation_expression ) statement_body
continuation_expression is evaluated. If its result is true, statement_body is executed and the process repeats. When continuation_expression evaluates to false, the loop ends; the execution resumes after the statement_body. If the continuation_expressioninitially evaluates to false, the statement_body loop is never executed.
The statement_bodyis—or may be—a single statement, or even the null statement (a single ; without an expression), but most often, it is a compound statement. Note that there is no semicolon specified as a part of the while()… statement. A semicolon would appear as a part of a single statement in a statement_body, or would be absent in the case of the statement_body consisting of a { … } compound statement.
Also note that, within the statement_body, there must...