Problem Description
Calculate A + B
1、[calculate] verb 計算,核算
Input
Each line will contain two integers A and B.Process to end line.
1、[contain] verb 包含,含有
2、[process] verb 加工,處理
Output
For each case,output A + B in one line.
[case] n 執行個體
Sample Input
1 1
1、[sample] n 樣本
Sample Output
2
A + B 問題
問題描述
計算A + B
輸入
每行包含兩個整數A 和 B,處理到行尾
輸入樣本
1 1
輸出樣本
2
C++通過版:
#include<iostream>
using namespace std;
int main( void )
{
int a;
int b;
while( cin >> a >> b )
{
cout << a + b << endl;
}
return 0;
}