Advertisement
gha890826

a002. 簡易加法

Apr 29th, 2021
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.12 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int a,b;
  4. int main()
  5. {
  6.     while(cin>>a>>b)
  7.     {
  8.         a+=b;
  9.         cout<<a<<endl;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement