Problem2393--for循环专题练习---输出数对

2393: for循环专题练习---输出数对

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 343  Solved: 262
[Status] [Submit] [Creator:]

Description

我们将相邻的2个数称之为一组数对,比如:1和2、2和3。
现在输入一个整数n,求 1到n之间符合条件的值,并按照每行一组的形式输出。

Input

一个正整数n(0<n<=100)

Output

若干组数字,每一组由2个数对组成,每一组为一行。

Sample Input Copy

4

Sample Output Copy

1 2 
2 3 
3 4

Source/Category

 基础C