Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1038--规律循环-练习一
1038: 规律循环-练习一
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
1237
Solved:
864
[
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
Source/Category
入门