#include <stdio.h> int main () { int m,n, temp,h,c,j,y; double s; printf("请输入两个整数:"); scanf("%d,%d",&m,&n); if(m<n) { temp=m; m=n; n=temp; } h=m+n; c=m-n; j=m*n; s=(double)m/(double)n; y=m%n; printf("和为:%d,差为:%d,积为%d,商为:%f,余为:%d",h,c,j,s,y); }