index
| submit
| rank
| book
countdown1 – Countdown (easy version)

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
- 2/10: works for the above examples but produces output in an incorrect format
- 4/10: works for the above examples and produces output in the correct format
- 10/10: works for other test cases
try first: hello2 total
try next: seq1
index
| submit
| rank
| book
Copyright © 2020-2022 Rudy Matela
All rights reserved