啊哈磊_编程从这里起步
标题:
求助,急用
[打印本页]
作者:
CShine
时间:
2019-4-21 20:34
标题:
求助,急用
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
scanf("%d %d",&a,&b);
c=a+b;
printf("%d",c);
c=a-b;
printf("%d",c);
c=a*b;
printf("%d",c);
c=a/b;
printf("%d",c);
return 0;
}
复制代码
作者:
帅小子
时间:
2019-4-23 16:15
把所有的printf("%d",c)换成printf("%d ",c)或者printf("%d\n",c)就可以了。
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2