Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem I: 规律循环-练习一训练
Problem I: 规律循环-练习一训练
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
787
Solved:
558
[
Status
] [
Submit
] [Creator:
]
Description
请将以下程序归纳成循环结构
int n;
cin>>n;
cout<<n*1<<“ ”;
cout<<n*3<<“ ”;
cout<<n*5<<“ ”;
…
cout<<n*19<<“ ”;
Input
仅一行,一个正整数。
Output
一行,输出若干个正整数,数字之间用空格隔开
Sample Input
Copy
2
Sample Output
Copy
2 6 10 14 18 22 26 30 34 38