Skip to content

Loops · warm-up

Countdown

Read a whole number n and print n, n - 1, … down to 1, one per line, then Liftoff!.

Stuck on the idea rather than the code? The Doing it again lesson walks through it.