Calculate
A + B.
Input
Each line will contain two integers
A and
B. Process to end of file.
Output
For each case, output
A + B in one line.
Sample Input
1 1
Sample Output
2
问题简述:对输入的两个数据进行加法运算,然后输出运算后的值
问题分析:利用算法对数据进行处理
#include<iostream>
using namespace std;
int main()
{
int a, b;
while (cin >> a >> b)
{
int c = a + b;
cout << c << endl;
}
return 0;
}