Unit 7 · Lesson 3
Build the idea
Start with the concept and its key vocabulary.
A while loop checks its condition before every iteration. If the condition starts false, the body runs zero times. Use while when the number of repetitions is not known in advance, and make sure something inside the loop can eventually make the condition false.
A loop whose repetition is controlled by a Boolean condition.
A pre-test loop that repeats while its condition is true.
Checking a condition before executing the loop body.
A loop that never reaches a false stopping condition.