Input
Input contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be processed.
输入包含多个测试案例。每个测试用例包含一对整数a和b,每行一个整数对。一个包含0个0终止输入和测试用例是不能处理的测试用例。
Output
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
对于每一对输入整数a和b你应该输出一行,a和b的值,并用一行输出在一行。
#include<iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
while ( !(a == 0 && b == 0))
{
cout << a + b << endl;
cin >> a >> b;
};
return 0;
}