Problem1705--递归-1~n~1

1705: 递归-1~n~1

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 777  Solved: 558
[Status] [Submit] [Creator:]

Description

输入一个整数 n,输出 1 到 n 到 1。具体一点说,你要依次输出:1, 2, 3, ……, n-2, n-1, n, n-1, n-2, ……, 3, 2, 1 。


这题要求不能使用循环语句,
 for,while ,do while 都不能使用

Input

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

Output

输出共 2 × n - 1 行,每一行包含一个整数,依次表示 1, 2, 3, ……, n-2, n-1, n, n-1, n-2, ……, 3, 2, 1 。

Sample Input Copy

5

Sample Output Copy

1
2
3
4
5
4
3
2
1

Source/Category

 提高A