Lesson 3.2 · Answer it
Loop update rule
2 marksYou mark it yourself against the marking points
A while loop checks a condition before each repetition.
(a) Explain why the loop body must contain a statement that can eventually make the condition false. [1]
(b) State what kind of error occurs if no such statement exists. [1]
[2]