Grade 6 · Mathematics

Improving code with conditionals in Grade 6

Your child reads and changes code that uses decisions and control structures to solve a mathematical problem efficiently.

Where this sits in the year

One skill in the Grade 6 constellation

A practical map of the math skills learners build through Grade 6. Exact timing varies by curriculum.

How it's taught now

Students trace short programs, predict outputs, test cases, and revise repeated or inefficient steps.

Three mistakes to watch for

  1. Testing only one input.

  2. Writing a condition that never becomes false.

  3. Changing code without predicting the new output.

A worked example

A loop adds 3 four times, starting at 2. What is the output?

Four increases of three add twelve to the starting value.

Answer: 14

Try this together

How could a program decide whether a number is even?

Give them a moment to talk it through. The explanation matters more than a quick answer.