Computer
A variable starts at 0 and is incremented by +2 each time. It should not exceed 10. How many iterations are required?
Explanation
Start value = 0
Increment by +2 each time
Iterations:
1 → 2
2 → 4
3 → 6
4 → 8
5 → 10
After 5 iterations, value reaches 10 (limit).
It should not exceed 10, so we stop here.
Total iterations = 5.