Easy
Recursive Countdown
Write a recursive function
countdown(n) that prints n, n−1, …, 1, each on its own line. Read n and call it.Input
One integer n ≥ 1.
Output
n lines.
Sample 1
Input
3
Output
3 2 1
Sample 2
Input
1
Output
1
Output appears here