判断一个数的十位和百位的和是奇数
#include<iostream>//头文件
#include<iomanip>
using namespace std;//命名空间
int main()//主函数
{
int a,b,c,d;
cin>>a;
b =a/10%10;
c =a/100%10;
d =c+b;
if(d%2==0)
{
cout<<"yes";
}
else
{
cout<<"no";
}
return 0;
}
还是偶数