A + B Problem
Problem Description 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.
输入多组数据,每行有两个数a和b求a+b,输出每行有一个结果
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
cout<<a+b<<endl;
}
return 0;
}