Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Login
Register
联系我们:18205821666(微信同号)
Problem A: 规律循环-练习一训练
Problem A: 规律循环-练习一训练
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
822
Solved:
585
[
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