Problems of a + b

Subject description:

Given two integers a, b (a, b represent no more than a range of type int), and a + b is obtained.

Enter a description:

Each line of input two integers a and b, separated by spaces.

Output Description:

the value of a + b.

Sample input:

1 2

Sample output:

3

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

Guess you like

Origin www.cnblogs.com/cc99/p/11470269.html