Posted on 2006-06-10 00:32
mahudu@cppblog 閱讀(159)
評論(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;
}