输入两个整数,进行加减乘除四则运算的c语言程序怎么写啊,拜托了~答:include<stdio.h> int main() {int a,b,sum,sub,mul,div;scanf("%d%d",&a,&b);sum=a+b;sub=a-b;mul=a*b;div=a/b;printf("%d\n%d\n%d\n%d\n",sum,sub,mul,div);return 0; }
如何用C语言编程"输入4个数,通过加减乘除计算出24,显示计算过程,并提 ...答:double fun(double a1,double a2,int b){switch(b){case 0:return (a1+a2);case 1:return (a1-a2);case 2:return (a1*a2);case 3:return (a1/a2);} } void main(){int i,j,k,l,n,m,r,save[4];double num[4]={1,1,1,1},tem1,tem2,tem3,abc=1111;char sign[5]="+...