OI-Codes/判断数字的奇偶.cpp
2023-08-23 21:52:51 +08:00

14 lines
150 B
C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin >> a;
if(a%2==0){
cout <<"even";
}
else{
cout <<"odd";
}
return 0;
}