5 questions to test your understanding
Consider this loop: `count = 3; while (count > 0) { print(count); }`. What happens when it runs?
A loop starts with `count = 0` and has the condition `while (count < 5)`. How many times does the body execute?
A while loop checks its condition continuously — if the condition becomes false in the middle of the loop body, the loop exits immediately at that point.
A while loop may execute its body zero times if its condition is false when the loop is first reached.
Why must something inside a while loop's body eventually make the condition false? What happens if it doesn't, and how do you design against it?