版权声明:看看就好,如需转载,注明一下出处 https://blog.csdn.net/sinat_34337520/article/details/89346237
WUST Online Judge
Description
计算 A + B.
Input
多组测试数据,每组测试数据占一行,包括2个整数。
Output
在一行中输出结果。
Sample Input
1 1
2 2
3 3
Sample Output
2
4
6
#include <stdio.h>
int main()
{
int a, b;
while(scanf("%d %d", &a, &b) != EOF)//这里不用while算错!!
{
printf("%d\n", a+b);//这里换行符掉了算错!
}
return 0;
}