WHILE can run zero times
Level 5: Repeat. Pre-condition loop: the test runs before the body. If it is already false, the body never runs.
- Previous: The counter pattern
- Next: Sentinel WHILE
- IGCSE & O Level Paper 2 Path
Level 5: Repeat. Pre-condition loop: the test runs before the body. If it is already false, the body never runs.