Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1039-- 规律循环-练习四
1039: 规律循环-练习四
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
1003
Solved:
735
[
Status
] [
Submit
] [Creator:
]
Description
请将以下程序归纳成循环结构
int n;
cin>>n;
cout<<n+2*20<<“ ”;
cout<<n+4*18<<“ ”;
cout<<n+6*16<<“ ”;
…
cout<<n+20*2<<“ ”;
Input
仅一行,一个正整数。
Output
一行,输出若干个正整数,数字之间用空格隔开
Sample Input
Copy
1
Sample Output
Copy
41 73 97 113 121 121 113 97 73 41
Source/Category
入门