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
cin输入可用空格结束,定义A,B,输出两数相加的结果;
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
int A, B;
cin>>A>>B;
cout << A + B;
return 0;
}