#include<stdio.h>
int i;
int main()
{
printf("input number:");
scanf("%d",&i);
if(i%2==0) //让这个数跟2相余观察余数是否等于0
{
printf("this is even number");
}
else
printf("this is old number");
return 0;
}
输出结果示例: