Command bank
Loop program
Output and reasoning
Execution trace
- No loop run yet.
The loop body stays in sequence. REPEAT controls how many times the complete body runs. One too few or one too many is an off-by-one error.
Put a useful sequence inside REPEAT, compare it with expanded instructions, and debug off-by-one repetition errors.
The loop body stays in sequence. REPEAT controls how many times the complete body runs. One too few or one too many is an off-by-one error.
🎓 You are learning to: Put a useful sequence inside REPEAT, compare it with expanded instructions, and debug off-by-one repetition errors.
Welcome! Three steps and you are learning:
It tells you what to build, sort or fix.
Try things and watch carefully what happens. You can always reset.
Use the feedback like a detective: what clue tells you what to change?
💡 Top tip: if you get it wrong, that is useful — find out why before trying again.
Nothing you do here is saved or sent anywhere — experiment freely. Reopen this guide any time with the ? Help button.