Question: Write a recursive function create _ countdown ( seconds ) that takes an int seconds as input and prints a countdown starting from the given

Write a recursive function create_countdown (seconds) that takes an int seconds as input and prints a countdown starting from the given number
of seconds down to 0. Your function should not print anything if 0 or negative numbers are entered as input.
create_countdown(6)
6
5
4
3
2
1
0
create_countdown(2)
2
1
0
create_countdown(0)
create_countdown(-1)
 Write a recursive function create_countdown (seconds) that takes an int seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!