用c语言编写四则运算,急呀!越简单越好答:用纯粹的C语言实现,代码如下:include<stdio.h>int main(){ double a,b; scanf("%lf%lf", &a, &b); printf("a+b=%lf, a-b=%lf, a*b=%lf", a+b, a-b, a*b); if(b==0) printf(", error!\n"); else printf(", a/b=%lf\n", a/b); ...
输入两个整数,进行加减乘除四则运算的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; }