http://noi.openjudge.cn/ch0104/03/
/* 1.4编程基础之逻辑表达式与条件分支 03 奇偶数判断 http://noi.openjudge.cn/ch0104/03/ https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658 */ #include<iostream> using namespace std; int main(void) { int x; cin>>x; if( x%2==1) { cout<<"odd"<<endl; } else { cout<<"even"<<endl; } return 0; }