[视频作者] 明哥教编程
[视频时长] 14:28
[视频类型] 校园学习
int main() {float a,b,c;char operation;scanf("%f%c%f",&a,&operation,&b);switch(operation){case '+': c=a+b;break;case '-':c = a-b;break;case '*': = a*b; break;case '/':c = a/b; break;default:printf("error!"); return 0;} printf("result = %.2f ",c);}