Posted on 2006-06-10 00:32
mahudu@cppblog 阅读(147)
评论(0) 编辑 收藏 引用 所属分类:
C/C++
Calculate a + b
Input
a and b
Output
a+b
Sample Input
1 5
Sample Output
6
Solution
#include <iostream>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b);
cout << a+b << endl;
return 0;
}