这段代码有啥问题呢,打印加减乘除
#include<stdio.h>
int main()
{
double a,c;
char b;
printf("亲输入算式\n");
scanf("%f%c%f",&a,&b,&c);
if(b=='+')
{
printf("%f+%f=%f",a,c,a+c);
}
if(b=='-')
{
printf("%f-%f=%f",a,c,a-c);
}
if(b=='*')
{
printf("%f*%f=%f",a,c,a*c);
}
if(b=='/')
{
printf("%f/%f=%f",a,c,a/c);
}
return 0;
}
运行结果