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
Example output 1
Example input 2
Example output 2
- 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
Copyright © 2020-2022 Rudy Matela
All rights reserved