用C语言编写(计算两个整数的和、 差、积、商与余数答:if (num2) printf("%d / %d = %g\n", num1, num2, (double)num1/num2);else printf("ERROR ,DIV BY ZERO\n");printf("%d %% %d = %d\n", num1, num2, num1%num2);return 0;} 代码二:include <stdio.h> void main(){ int x, y;printf("please enter a,b,c:");sc...
C语言 编写函数同时求两个整数的和与差?答:int Add_Sub(int *p,int *q,int *s){ s=*p-*q;return *p+*q;} int main(int argc,char *argv[]){ int x,y,z;printf("Enter x & y(int)...\n");scanf("%d%d",&x,&y);printf("\nx+y = %d\n",Add_Sub(&x,&y,&z));printf("x-y = %d\n",z);return 0;} ...