Computer Science for IGCSE & O level - Programming (Section 6 - No. 14)
What is the primary difference between a pre-condition loop and a post-condition loop?
Pre-condition loops always execute at least once.
Post-condition loops check the condition before the loop body is executed.
Pre-condition loops check the condition before the loop body is executed.
Post-condition loops cannot be used with a counter.
Explanation
The pre-condition loop checks at the start, while the post-condition at the end of the loop body.
Comments (0)
