All numbers from n to 1
Problem
Write a program containing a recursive function that given a natural number
n, prints all numbers from
n to
1. The main program must contain input of initial data (a number
n) and a function call.
Examples
| # |
Input |
Output |
| 1 |
6 |
6 5 4 3 2 1 |
Запрещенные операторы: for; while; until