C语言 四个数减法答:int main(){ int A, B, C, D;printf("请输入数据(做减法)!\n");printf("A = ");scanf("%d",&A);printf("B = ");scanf("%d",&B);printf("C = ");scanf("%d",&C);printf("D = ");scanf("%d",&D);printf("Sub( %d - %d - %d - %d ) = %d",A,B,C,D,(...
C语言:编写一个简单的两位数加法、减法、乘法、除法计算程序,要求输入...答:int main(){ int a,b,c;char op;scanf("%d%c%d",&a,&op,&b);switch(op){ case '+':c=a+b;break;case '-':c=a-b;break;case '*':c=a*b;break;case '/':c=a/b;break;default:printf("Error!\n");return 0;} printf("%d%c%d=%d\n",a,op,b,c);return 0;} ...