Skip to main content

Checkpoint: Loops

beginner15 min readLesson 16 of 204

One graded challenge: accumulate statistics and find a first match — the two loop patterns of the year.

Checkpoint — loops. Pass the graded challenge below to finish the module.

Two tasks in one: total-and-average (accumulator) and first-match (search with break). Both hand-rolled — no algorithms yet.