Unit 6 games

Loop Lab

WHILE and FOR, one iteration at a time

Your mission

Loops let a program repeat itself. Step through a WHILE loop and a FOR loop with a live trace table, bend the rules to change how often they repeat, trap a runaway infinite loop, then predict, count and fix loops of your own.