调试的时候提示只有一个错误,看了好久没看出来,能帮下忙吗?谢谢!
#include<stdio.h>main()
{
float data1,data2,sum,sub,multi,div;
char op;
scanf("%f%c%f",&data1,&op,&data2)
switch(op)
{
case"+":sum=data1+data2;
printf("%f\n",sum);break;
case"-":sub=data1-data2;
printf("%f\n",sub);break;
case"*":multi=data1*data2;
printf("%f\n",multi);break;
case"/":div=data1/data2;
printf("%f\n",div);break;
default:print("error\n");
}
}