Logical reasoning · lesson 25 of 30 · free

Input–output machines — Logical reasoning for kids

A machine changes its input step by step: it may move the smallest number to the front each time, or multiply and add. Find the rule, then write each step on its own line until you reach the step asked for.

▶ Watch how it works

Got it? Practise ↓

How to think it through

One step, one line — “write the whole list after each step — never skip a step in your head”

  1. Read the rule carefully: what moves (or changes) in each step?
  2. Write the list (or number) after step 1, step 2, step 3 … each on a new line.
  3. Stop at the step asked and read the answer.

Use it for: Input–output and machine questions in aptitude tests, and the idea of an algorithm in coding.

Worked example: A machine arranges numbers step by step. In each step it takes the smallest number not yet arranged and moves it to the left, just after the numbers already arranged; the others keep their order. Input: 45 12 78 33 91 27. After step 2, what is the 3rd number from the left? → 45

  1. Step 1: 12 45 78 33 91 27.
  2. Step 2: 12 27 45 78 33 91 — the 3rd number is 45.

Check: After 2 steps the two smallest (12, 27) are in front, the rest keep their order ✓

▶ Watch it animated

✏️ Practice

Work it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 25 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the ⚙️ Machine Mind badge when you pass — and a certificate when you finish all 10 lessons of Part 3 · Logical thinking. You can still take the test without signing in.

🖨️ Input Output Reasoning Worksheet

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 Logical reasoning classes near you — online or at home

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
Teacher at homeA TalentJR teacher visits your home (selected cities).
At a centreClasses at a TalentJR partner centre near you, where available.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Maths Olympiad Reasoning is a big part of maths Olympiads — practise Olympiad questions too.