index | submit | rank | book

countdown1 – Countdown (easy version)

Rocket launch countdown.

Write a program that performs a countdown. It should read a single integer and it should print a countdown from that integer.

Input and Output

With n as the input, your program should produce the following with one item per line: n, n-1, n-2, …, 2, 1, Go!

Example input 1

3

Example output 1

3
2
1
Go!

Example input 2

5

Example output 2

5
4
3
2
1
Go!

Scoring

try first: hello2 total

try next: seq1

index | submit | rank | book

Copyright © 2020-2021 Rudy Matela
This text is available under the CC BY-SA 4.0 license.
Originally available on cscx.org/countdown1