The while loop

A while loop repeats one or more other instructions as long as a given condition holds true. The format of the loop is:
while (expression) statement
where the statement can be a single statement or a compound statement.