
#include
#include
int main()
{
int a;
scanf("%d",&a);
if(a%2==0)
{
printf("yes");
}
if(a%2!=0)
{
printf("no");
}
system("pause");
return 0;
}
这代码怎么说呢,我去掉第一个或者第二个if语句,它就能输入,输出也正确,要是两个都存在,就无法输入了

在下面那个scanf前面加上
flush(stdin);

你好,可能是你的编译器问题 代码是没有错而且用codeblocks是可以运行的