Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem4235--周周练-寒假3课-while的应用3
4235: 周周练-寒假3课-while的应用3
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
43
Solved:
36
[
Status
] [
Submit
] [Creator:
]
Description
输出 1 到 n,以 -> 衔接。 减号和大于号
Input
一个整数 n(1 ≤ n ≤ 1000)。
Output
一行,输出 1 到 n,以 -> 衔接。
Sample Input
Copy
5
Sample Output
Copy
1->2->3->4->5
Source/Category
周周练-基础C