技术,瞎侃,健康,休闲……

mahu@cppblog 人类的全部才能无非是时间和耐心的混合物
posts - 11, comments - 13, trackbacks - 0, articles - 12
  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;
}

posted @ 2006-06-10 00:32 mahudu@cppblog 阅读(140) | 评论 (0)编辑 收藏

仅列出标题
共2页: 1 2