The idea
Run the steps in order; a loop repeats its steps the number of times it says.
Watch out for
Running a loop only once.
Is this your child's gap?
The free Maths Clinic gap check finds the skills your child is missing, starting from the roots, in a few minutes. No card needed.
Try 3 examples
Work it out first, then tap to see the answer and how to get it.
Example 1
A robot starts on square 2 of a number track. It runs this code: forward 6, back 3, forward 6. Which square does it stop on?
Show the answer
11
- 2 + 6 = 8; back 3: 5.
- Forward 6: 11.
A common wrong answer: 17. "Back" moves the other way: take 3 away.
Example 2
A robot starts on square 0. The code says: repeat 3 times [forward 4]. Where does it stop?
Show the answer
12
- The loop runs forward 4, 3 times.
- 3 × 4 = 12.
A common wrong answer: 4. The repeat runs the step 3 times, not once.
Example 3
A robot starts on square 0 of a number track. It runs this code: forward 5, back 1, forward 5. Which square does it stop on?
Show the answer
9
- 0 + 5 = 5; back 1: 4.
- Forward 5: 9.
A common wrong answer: 11. "Back" moves the other way: take 1 away.
It builds on
If this is hard, the gap is often here first.
- Missing numbers · Primary 2
- Counting in 2s, 5s and 10s · Primary 2
What the curriculum calls it
Where this skill sits in each curriculum Maths Clinic Plus follows.
- · Canadian Grade 1: Coding
- · Canadian Grade 5: Coding
- · Australian Year 3: Algorithms
Get help with it
🧮 Maths Clinic
Finds the gap, then fixes it skill by skill, with questions made fresh and marked at once.
🦉 Ask Paddi to teach it
The Tutor teaches it step by step, then practises it: hints first, never the answer first.
Try a free lessonFind "Following code: sequences and loops" in every app → · All topics