Problem J: 递归-输出1到n

Problem J: 递归-输出1到n

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 375  Solved: 337
[Status] [Submit] [Creator:]

Description

编写一个递归函数 void f(int n) 输出 1 到 n。
要求:不能使用全局变量。  

Input

一个整数 n(1 ≤ n ≤ 1000)。  

Output

输出 1 到 n,每个数占一行。  

Sample Input Copy

5

Sample Output Copy

1
2
3
4
5