Flowchart for a REPEAT loop
In a flowchart, the loop body comes first, then a decision. NO goes back to the body, YES leaves the loop, so the body runs at least once.
Understanding Flowchart for a REPEAT loop in IGCSE Computer Science Paper 2
What it does: When Num > 0? is YES the UNTIL condition is TRUE, so the flow leaves the loop and carries on to OUTPUT Num. A WHILE loop continues on YES and exits on NO. A REPEAT loop exits on YES and continues on NO, so the directions are opposite. REPEAT ... UNTIL tests its condition at the end. The body is drawn first and the decision comes after it.
Common mistakes: A REPEAT loop draws the body first, so the flowchart must start with the Input box. Here a decision comes before the body, so the body might never run. Line 1 should be 'Input: Password'. In a REPEAT flowchart the NO path must return to the loop body. Here NO leaves the loop. It should be 'NO: back to Process'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 188–213) and word search (Modules 188–231).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
REPEAT ... UNTILFill in the Blanks
Spot the Error
Student with a class code? Join your class →