输入两个整数,进行加减乘除四则运算的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语言中,做一个计算,功能有加减乘除,用户随便输入两个输,选择功能进行...答:include int main(){ int a,b;scanf("%d%d",&a,&b);printf("a+b=%d\n",a+b);printf("a-b=%d\n",a-b);printf("a*b=%d\n",a*b);if(b!=0)printf("a/b=%.2f\n",1.0*a/b);else printf("除数为0!\n");return 0;} / 4 8 a+b=12 a-b=-4 a*b=32 a/b...