题目描述
Calculate A+B
输入
Input consists of a series of pairs of integers A and B,separated by a space, one pair of integers per line.
输出
For each pair of input , output a line with a single integer : sum of A and B.
样例输入复制
1 2 8 9
样例输出复制
3 17
这个题要多组输入
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b)
{
cout << a + b << endl;
}
return 0;
}