标签:
#include<stdio.h> main() { char a; float b,c,x1,x2,x3,x4; printf("please input the number figures:"); scanf("%d%c%d",&b,&a,&c); x1=b+c;x2=b-c;x3=b*c;x4=b/c; if(a==‘+‘) { printf("%d\n",x1); } else if(a==‘-‘) { printf("%d\n",x2); } else if(a==‘*‘) { printf("%d\n",x3); } else if(a==‘/‘) { printf("%d\n",x4); } else { printf("sorry,please quit\n"); }
标签:
原文地址:http://www.cnblogs.com/pinwuyu/p/4907070.html