Scratch and algorithmic thinking · Lesson
Use the remainder operator and a selection to classify an integer.
The remainder after division by 2 turns a mathematical property into a programmable condition.
IF n mod 2 = 0 THEN even ELSE odd
This is a starter map for the lesson concept. You can move and edit nodes, add new ones and create your own connections. Changes stay on this device and do not affect mastery assessment.
Double-click a node to edit it. Drag nodes and add the connections that help you remember the concept.
Press Run and carefully observe block order, the Stage and variable state. The Scratch environment intentionally remains in English.
Use mod and if/else to determine whether an integer is multiple-of-3 or not-multiple-of-3.
Some key blocks are detached and shown beside the program. Drag them into the correct positions and also check values or operators that may be deliberately wrong.
Progress: 0 / 5 · correct: 0
The mental model in this lesson does not belong to Scratch: it describes a programming concept. Later the same exercise can be represented as a flowchart and then as a C program while keeping the same test cases.
ConceptStep separates what is required from what is recommended or useful as reinforcement. Only required prerequisites block your progress.
Relationships: solid line = required · dashed line = recommended · dotted line = reinforcement.