题目链接:http://poj.org/problem?id=1000
题目描述
Calculate A + B.
输入
Each line will contain two integers A and B. Process to end of file.
输出
For each case, output A + B in one line.
样例输入
1 1
样例输出
2
代码
#include <stdio.h>
int main() {
int a, b;
while (scanf("%d %d", &a, &b) != EOF) {
printf("%d\n", a + b);
}
return 0;
}