Advertisement
Josif_tepe

Untitled

Mar 11th, 2024
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a, b;
  6.     cin >> a >> b;
  7.    
  8.     if(a < b) {
  9.         cout << a + b << endl;
  10.     }
  11.    
  12.     if(a >= b) {
  13.         cout << a - b << endl;
  14.     }
  15.     return 0;
  16. }
  17.  
  18.  
  19.  
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement