编的程序有点问题 求大神指点
# include<stdio.h>int main()
{
char name[10];
char sex;
double maths,english,computer;
int age;
printf("please enter your name age sex:");
scanf("%s%d %c",&name,&age,&sex);
printf("piease enter your scores(maths,english,computer):");
scanf("%f%f%f",&maths,&english,&computer);
(maths>=90&&english>=90&&computer>=90)?printf("You are excellent\n"):printf("You should study hard\n");
return 0;
}
为什我每次无论输入那三个数 结果都是You should study hard