输出换行是\n,不是/n
#include
int main()
{
int a, b;
while (scanf("%d %d", &a, &b) != EOF)
printf("%d\n", a + b); //换行的转义是 \n
}
//和这个
#include
#include
int main()
{
int a, b, h;
while (scanf("%d %d", &a, &b) != EOF)
{
h = a + b;
printf("%d\n", h); //换行的转义是 \n
}
}
//祝你学习进步,更上一层楼!(*^__^*)
#include
int main()
{int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{printf("%d\n",a+b);
}
}
\n 不是/n,,
是\n ,而不是/n,另外,int的最好要有个返回值,比如写个return 0;