#includeint 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;}
本文共 336 字,大约阅读时间需要 1 分钟。
#includeint 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;}
转载于:https://www.cnblogs.com/simple9495/p/3378627.html