While you were sleeping…

--Originally published at Carolina's Blog Site

While statements are repeatedly executed, as long as the condition holds.

*BREAK: To end a while loop prematurely, use the break statement, which causes the loop to finish immediately.

*CONTINUE: Unlike break, continue jumps back to the top of the loop, rather than stopping it.