statement executes one or more statements repeatedly, in a loop, while the logical condition
is true. Unlike a do
loop, a counter is not automatically incremented, so you must ensure the termination of the loop. The condition is evaluated on each repetition of the loop before any of the statements are executed.