#include
using namespace std;
int main(int argc, char** argv){
int a;
cin>>a;
a=a%2;
if(a==1){
cout<<"Odd";
}
else{
cout<<"Even";
}
}
直接把if裡面用a%2也能判斷,可以省1行(其實沒差
好,再減三行XD
#include <iostream>
using namespace std;
int main(int argc, char** argv){
int a;
cin>>a;
if(a%2==1)
cout<<"Odd";
else
cout<<"Even";
}