3069 - 被2,3同时整除的数

通过次数

0

提交次数

0

时间限制 : 1 秒 内存限制 : 128 MB

 1~100之间所有既能被2整除,又能被3整除的整数

题目输入

题目输出

输入/输出样例

输入格式

no input needed

输出格式

6
12
18
24
30
36
42
48
54
60
66
72
78
84
90
96

C++解答

#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
	for(int i=6;i<=96;i+=6)
		cout<<i<<endl;
	return 0;
}