C语言:输入两个数和一个字符,根据操作符进行加减乘除运算,并输出...答:include <stdio.h> int main(){ int a, b; //两个数 char op; //操作符 printf("输入一个表达式,例如5*4:\n");scanf("%d%c%d", &a, &op, &b);switch(op){ case '+':printf("%d%c%d=%d", a, op, b, a+b);break;case '-':printf("%d%c%d=%d", a, op,...
用C语言设计一个计算器,可以进行简单的加减乘除运算,用嵌套实现_百度知 ...答:include <stdio.h> int main(){ float x,y;char c;printf("Input x:");scanf("%f",&x);printf("Input y:");scanf("%f",&y);printf("Celect (+,-,*,/):");scanf("%c%c",&c,&c);switch(c){ case '+':printf("%0.2f+%0.2f=%0.2f\n",x,y,x+y);break;case '-...
简单的c语言加减乘除运算答:不知道你想要什么样的程序思路和运算结果,我按我的理解给你贴代码如下:include <stdio.h>int main(){ float a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t; scanf("%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",&a,&b,&c,&d,&e,&f,...