5 questions0m 0s
Learn the skill
WHILE checks its condition before each iteration. Trace SET count TO 0; WHILE count < 3: SET count TO count + 1; END; SHOW count. Use integer values and update your trace after each body execution.
Worked example
The condition is true at count 0, 1 and 2. Each pass adds 1. At count 3 the condition is false, so the loop stops and SHOW displays 3.