using namespace std;
int main(){
int n; while(cin>>n){ if(n%2 == 0){ cout<<"偶数"<<endl; } else{ cout<<"奇数"<<endl; } } return 0;
}
c++ 奇偶数
原文:https://www.cnblogs.com/peterpan852/p/14243487.html