Flowchart for a FOR loop
Set Counter ← 1 in a process box, test Counter <= 10 in a decision, run the body on Yes, then do Counter ← Counter + 1 and flow back to the test. No leaves the loop.
Understanding Flowchart for a FOR loop in IGCSE Computer Science Paper 2
What it does: The update step replaces NEXT in the flowchart. It comes after the body and before the line back to the decision. Counter ← 1 is an assignment, so it goes in a process box. It happens once, before the test. A test with Yes and No exits needs a decision diamond. A process rectangle only does a step. Pseudocode and flowcharts use ← for assignment. A single = is for comparison. Going back to Counter ← 1 would reset the counter every time and the loop would never end. The flow must return to the test. The No exit leaves the loop and carries on with the rest of the flowchart. The body only runs on Yes.
Common mistakes: The loop body runs on the Yes branch, when the test Counter <= 10 is true. The No branch leaves the loop. The line should be Yes: OUTPUT Counter. Counter starts at 1, so Counter >= 5 is false straight away and the body never runs. The decision must be Counter <= 5.
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
FOR loop flowchartFill in the Blanks
Spot the Error
Student with a class code? Join your class →