Topic 3.8 · Interactive concept example
Counted loops, accumulator and output placement
- REPEAT n TIMES
- Initialisation placement
- Display inside versus after
- Early return and zero iterations
Change it · step through · explain
Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.
Ready · Make a prediction
- Repetitions (0–8)3Waiting
- Increment (0–10)2Waiting
- PlacementnormalWaiting
Ready to explore: Counted loops, accumulator and output placement
Why: Change an input, predict the first effect, then advance one step.
Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.