Write a recursive function that asks the user to enter a positive integer number each time it is called, until zero or a negative number is input. The function then outputs the numbers entered in reverse order. For example, the I/O dialog might be the following:
Enter positive number, 0 to end: 10Enter positive number, 0 to end: 20Enter positive number, 0 to end: 30Enter positive number, 0 to end: 0
The function then outputs
30
20
10
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.