#include<stdio.h> int main(void) { int num1,num2,a,b,c; double d,e; printf("输入num1,num2:"); scanf("%d%d",&num1,&num2); a=num1+num2; b=num1-num2; c=num1*num2; d=num1/num2; e=num1%num2; printf("输出和=%d差=%d积=%d商=%.2f余数=%.2f",a,b,c,d,e); return 0; }