输入两个整数,进行加减乘除四则运算的c语言程序怎么写啊,拜托了~答:include<stdio.h> void function(int a, int b){ printf("%d add %d = %d\n",a, b, a+b); //加法运算 printf("%d sub %d = %d\n",a, b, a-b);//加法运算 printf("%d mul %d = %d\n",a, b, a*b);//乘法运算 printf("%d div %d = %d\n",a, b, a/b);/...
C语言编写1~9数字加减乘除得24的源代码!答:if(tem3==24.0)printf("{(%d%c%d)%c%d}%c%d=24\n",save[i],sign[n],save[j],sign[m],save[k],sign[r],save[l]);else if(tem3==-24.0)printf("{%d%c(%d%c%d)}%c%d=24\n",save[k],sign[m],save[i],sign[n],save[j],sign[r],save[l]);else if(tem3==1....
C语言作业,编程实现两个整数的算数运算(加减乘除余)答:include<stdio.h> main(){ int a,b;printf("Please input data a,b");scanf("%d%d",&a,&b);printf("\na+b=%d",a+b);printf("\na-b=%d",a-b);printf("\na*b=%d",a*b);printf("\na/b=%d",a/b);printf("\na%b=%d",a%b);getch();} ...