Rocket Countdown (Baby Steps)

Read n. Count down from n to 1, one number on each line, then print Liftoff!

Input: One integer n (1 to 100).

Output: n numbers counting down, then Liftoff! on the last line.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • A loop can count down: start at n, go down by 1.

More Baby Steps practice