Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2402--规律循环-练习二训练
2402: 规律循环-练习二训练
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
509
Solved:
371
[
Status
] [
Submit
] [Creator:
]
Description
请将以下程序归纳成循环结构
int n;
cin>>n;
cout<<n/2<<“ ”;
cout<<n/4<<“ ”;
cout<<n/6<<“ ”;
…
cout<<n/20<<“ ”;
Sample Input
Copy
840
Sample Output
Copy
420 210 140 105 84 70 60 52 46 42
Source/Category
入门