A + B Problem

 每行有两个整数,计算它们的和。

判断结尾应该是比较难一点的

#include <iostream>

using namespace std;

int main()
{
    int a,b;
    while(cin>>a>>b){
        cout<<a+b<<endl;
    }
    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-07-26
  • 2021-10-22
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2021-09-26
  • 2021-10-12
相关资源
相似解决方案