为什么输入的字母都会成为偶数?
#include<stdio.h>#include<conio.h>
main(){
int x;
printf("please enter a number.\n\ni will tell u the number is even or not!\n\n");
scanf("%d",&x);
if(x%2==0)printf("\nyes\n\n");
else printf("\nno\n\n");
getch();
}
谢谢观看和解答!!!