ROOTED IN SAHARANPUR. IMAGINING A BRIGHTER INDIA. ✦ 2026 • A journey of discovery
Logic & puzzles • Classes 4–5

Build a rule machine

Can a clear instruction work for every number?

About 10 minutes Read · try · explain
Take your time. Speak, draw or write your answers.
My learning library
Your list stays in this device’s browser. No name or learner account is needed. Other users of a shared device can see it.
01 / UNDERSTAND

Here is what is happening.

An algorithm is a set of instructions. A condition chooses which instruction to follow. Test a rule with several inputs, including a case where the condition is false.

Pause. Make the idea your own.

Explain one idea to a partner, draw it or write it in your own words. Which part is an observation, an example or a question?

You can use a home language. No need to share personal experiences or finish everything in one sitting.
02 / MAKE IT YOUR OWN

Your little investigation

What you need

Paper and a pencil; no computer needed.

  1. Use this rule: if a whole number is even, add 1; otherwise subtract 1.

  2. Try 2, 5 and 8. Write input and output in two columns.

  3. Explain which instruction was chosen for each input.

03 / CHECK YOUR UNDERSTANDING

What does this machine output for 5?

Choose one answer
KEEP ASKING

Another question is waiting.

All activities in your group