HDU_oj_1000 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.
 
Sample Input
1 1
 
Sample Output
2

 

基础题,直接上代码

1 #include<iostream>
2 using namespace std;
3 int main()
4 {
5     int a,b;
6     while(cin>>a>>b)
7     cout<<a+b<<endl;
8     return 0;
9 }

 

posted @ 2017-12-03 00:40  T丶jl  阅读(126)  评论(0)    收藏  举报