Use AI with an adult nearby, and check answers together.

Primary 3 · Maths · Algebra

Following code: sequences and loops

Run the steps in order; a loop repeats its steps the number of times it says.

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.

Take the free check

Try 3 examples

Work it out first, then tap to see the answer and how to get it.

  1. 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

    1. 2 + 6 = 8; back 3: 5.
    2. Forward 6: 11.

    A common wrong answer: 17. "Back" moves the other way: take 3 away.

  2. Example 2

    A robot starts on square 0. The code says: repeat 3 times [forward 4]. Where does it stop?

    Show the answer

    12

    1. The loop runs forward 4, 3 times.
    2. 3 × 4 = 12.

    A common wrong answer: 4. The repeat runs the step 3 times, not once.

  3. 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

    1. 0 + 5 = 5; back 1: 4.
    2. 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.

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
Maths Clinic Plus: in your own curriculum →

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 lesson

Find "Following code: sequences and loops" in every app → · All topics

© 2026 PromptPaddi Limited. All rights reserved.