← Problem book: C Lesson 89 of 96 · 10 XP

Countdown with recursion

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

Write a recursive function that prints the numbers from n down to 1, separated by spaces. Read n (n ≥ 1) and call it.

Example

Input:

3

Output:

3 2 1

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.