半枯
#include<stdio.h>void main(){ char c; float x,y; int result; scanf("%c %f %f",&c,&x,&y); if(c=='+') result=(x+y); else if(c=='-') result=(x-y); else if(c=='/') result=(x/y); else if(c=='*') result=(x*y); else { printf("符号不合法\n"); return ; } printf("%d \n",result);}