int main()
{
double x,y;
char z;
printf("enter x,z,y:");
scanf("%f,%f,%c",&x,&y,&z);
if("z==+")
printf("x+y=%f\n",x+y);
else if("z==-")
printf("x-y=%f\n",x-y);
else if("z==*")
printf("x*y=%f\n",x*y);
else if("z==/")
if(y==0)
printf("error");
else
printf("x/y=%f\n",x/y);
else
printf("error");
return 0;
}
请问错在哪?(ps,运行出来是乱码)