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.

Sample Input
1 1

Sample Output
2
 
 
C语言代码
#include
int main()
{
int a,b;
while(~scanf("%d%d",&a,&b))   //或者scanf("%d%d",&a,&b)!=EOF
printf("%d\n",a+b);
}
 
C++代码
#include
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
while(!cin.eof())       //C++的cin是个对象,没有所谓返回
{
cout<<a+b<<endl;
cin>>a>>b;
}
}