//奇数偶数判断
//奇数需输出odd
//偶数则输出even
#include <iostream>
using namespace std;
int main()
{
int num = 0;
cout << "请输入数字:" << endl;
cin >> num;
if (num % 2 == 1)
{
cout << "odd" << endl;
}
else
{
cout << "even" << endl;
}
}
© 版权声明
THE END
- 最新
- 最热
只看作者