#include<stdio.h>
main()
{
float a,b;
char c;
printf("输入表达式如a+(* - /)b: ");
scanf("%f%c%f",&a,&c,&b);
switch(c)
{
case'+':printf("%f ",a+b);break;
case'-':printf("%f ",a-b);break;
case'*':printf("%f ",a*b);break;
case'/':printf("%f ",a/b);break;
}
return 0;
}