Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem3106--while循环---显示1-n的全部数字
3106: while循环---显示1-n的全部数字
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
9
Solved:
9
[
Status
] [
Submit
] [Creator:
]
Description
使用while循环,输入一个数字n,将1-n的数字全部都显示出来,并用空格隔开。
Input
仅一个正整数n(1<=n<=1000)
Output
输出n个数,为1到n之间的所有的数,并用空格隔开
Sample Input
Copy
5
Sample Output
Copy
1 2 3 4 5
Source/Category
基础C