3073 - 100以内包含数字2的数

通过次数

0

提交次数

0

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

找出100以内包含数字2的数。

题目输入

题目输出

输入/输出样例

输入格式

没有输入

输出格式

2
12
20
21
22
23
24
25
26
27
28
29
32
42
52
62
72
82
92

C++解答

#include<bits/stdc++.h>
using namespace std;
int main()
{
	cout<<2<<endl<<12<<endl;
	for(int i=20;i<=29;i++)
		cout<<i<<endl;
	for(int i=32;i<100;i+=10)
		cout<<i<<endl;
    return 0;
}