ACMs新手训练题(A + B Problem)

A + B Problem
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

问题链接:https://vjudge.net/problem/11524/origin
问题简述:计算两个数的和。
问题分析:水。

AC代码如下:

#include
using namespace std;
int main()
{
 int a, b;
 while (cin >> a >> b)
 {
  cout << a + b << endl;
 }
 return 0;
}

你可能感兴趣的:(ACMs新手训练题(A + B Problem))