Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2718--递归-输出n到1
2718: 递归-输出n到1
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
757
Solved:
646
[
Status
] [
Submit
] [Creator:
]
Description
编写一个递归函数 void f(int n) 输出 n 到 1。
要求:不能使用全局变量。
Input
一个整数 n(1 ≤ n ≤ 1000)。
Output
输出 n 到 1,每个数占一行。
Sample Input
Copy
5
Sample Output
Copy
5 4 3 2 1
Source/Category
提高C