判断n是否为奇数,是就输出

#include <iostream>
using namespace std;

int main()
{
	int n;
	while(cin >>n )
	{
	if(n & 1)
		cout << n <<endl;
	else 
        cout << "No" <<endl;
	}

	return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_40539125/article/details/82918749
今日推荐