Loop Builder

Put a useful sequence inside REPEAT, compare it with expanded instructions, and debug off-by-one repetition errors.

Grade 4 · CMP-0012 / CMP-0013 · no voice

Command bank

Loop program

REPEAT TIMES
END REPEAT
Choose commands for the loop body and a repeat count.

Output and reasoning

Run a loop to create output.
0expanded command executions
1instructions written using a loop

Execution trace

  1. 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.

⌂ Orco Academy