A + B Problem
Calculate a + b
Input
The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.
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.
Sample Input
1 5
Sample Output
6
Hint
Use + operator
Sample Program Here
#include
using namespace std;
int main()
{
int a,b,c;
while(cin>>a>>b) //英语不好23333没看懂是“每一个输入”而不是”输入一个“。。。。
{
c=a+b;
cout<<c<<endl;
}
return 0;
}