ASCENTLEARNING
Join a weekly class
Skip to learning content
Year 4 · Patterns and algorithms · 14 min

Steps and decisions in algorithms

Follow ordered instructions, use a yes/no decision and test whether an algorithm works.

01 / LEARN

The idea, step by step

Give instructions in the right order

An algorithm is a set of steps that solves a task. Steps need an order, a starting point and a clear stopping point. Start at 3, add 2, then multiply by 4 gives 20. Swapping the operations gives a different answer.

Make it bigger is not a precise instruction. Say add 2 or multiply by 4. When a step repeats, say how many times to repeat it or what condition will stop it.

Make one decision at a time

A decision has a question with clear answers, often yes or no. Decide whether the starting number is even. Follow only the matching branch in the flowchart. Both branches finish at Stop.

Test an algorithm with more than one input. Include an input for each branch. Trace the steps and record results. If an instruction is missing or never stops, change it and test again.

A common trap

I added 4 and then 1 because both are in the flowchart.

Instead: A yes/no decision chooses one branch. Follow only the branch matching the input.

02 / WORKED EXAMPLES

See the thinking

Example 1

Trace ordered operations

Start at 6. Add 3. Multiply the result by 5.

  1. Start with 6.
  2. 6 + 3 = 9.
  3. 9 × 5 = 45.
45
Example 2

Follow a decision

Use the flowchart with inputs 8 and 7.

  1. 8 is even: follow Yes, so 8 + 4 = 12.
  2. 7 is odd: follow No, so 7 + 1 = 8.
  3. Stop after the chosen operation; do not follow both branches.
Input 8 gives 12. Input 7 gives 8.

Check your understanding

Start at 10. Subtract 2, then double. What is the output?

Show answer

16

10 − 2 = 8, then 8 × 2 = 16.

03 / WORKSHEET

Your turn

6 questions · 11 marks · Work at your own pace.

Read the questions online
  1. Start at 5. Multiply by 3, then add 2.
    2 marks
  2. Start at 5. Add 2, then multiply by 3.
    2 marks
  3. Start at 4. Repeat add 3 exactly three times.
    1 mark
  4. If the input is greater than 20, subtract 5; otherwise add 5. Find the outputs for 25 and 20.
    2 marks
  5. Start at 6. Add 2 until the result is greater than 10, then stop. Write every number reached.
    2 marks
  6. An instruction says: start at 1 and keep adding 1. What is needed to make it finish?
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Start at 5. Multiply by 3, then add 2.
    2 marks

    5 × 3 = 15.

    15 + 2 = 17.

    17
  2. Start at 5. Add 2, then multiply by 3.
    2 marks

    5 + 2 = 7.

    7 × 3 = 21.

    21
  3. Start at 4. Repeat add 3 exactly three times.
    1 mark

    4 → 7 → 10 → 13.

    13
  4. If the input is greater than 20, subtract 5; otherwise add 5. Find the outputs for 25 and 20.
    2 marks

    25 is greater than 20, so 25 − 5 = 20.

    20 is not greater than 20, so 20 + 5 = 25.

    20 and 25
  5. Start at 6. Add 2 until the result is greater than 10, then stop. Write every number reached.
    2 marks

    10 equals 10; it is not greater.

    The first number greater than 10 is 12.

    6, 8, 10, 12
  6. An instruction says: start at 1 and keep adding 1. What is needed to make it finish?
    2 marks

    Without a stopping condition the additions continue.

    Any clear reachable stopping condition is acceptable.

    A stopping instruction, such as stop when you reach 10.
Checking saved progress…

Continue learning

Predicting and explaining patterns

Next lesson
Curriculum reference & lesson scope

Australian Curriculum v9 and SA Curriculum Mathematics 2026

Additive/multiplicative rules; steps/decisions; predicting and explaining patterns.

Official curriculum source ↗
Back to Patterns and algorithms

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account