我觉得这个也可以。
#include <stdio.h>
void main()
{
int a;
int temp=0;
printf("Enter the number:\n");
scanf("%d",&a);
if (a%2==0)
temp=0;
else
temp=1;
if (!temp)
printf("%d is not the temp!\n",a);
else
printf("%d is the temp!\n",a);
}
#include <stdio.h>
void main()
{
int a;
int temp=0;
printf("Enter the number:\n");
scanf("%d",&a);
if (a%2==0)
temp=0;
else
temp=1;
if (!temp)
printf("%d is not the temp!\n",a);
else
printf("%d is the temp!\n",a);
}

~~我的明天我知道~~