> 其他 >
c语言程序设计.由键盘输入两个整数,分别计算这两个数的和、差、积、商,并输出结果.
人气:356 ℃ 时间:2019-08-22 15:31:53
解答
#include "stdio.h"main() { int a,b;printf("请输入两个整数(a,b):");scanf("%d,%d",&a,&b); printf("和:%d\n",a+b); printf("差:%d\n",a-b);printf("积:%d\n",a*b);printf("商:%f\n",(float)a/b);} /*如果满...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版