Advertisement
Josif_tepe

Untitled

May 22nd, 2024
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int a = 10;
  7.     int b = 3;
  8.     if(a > b)
  9.     {
  10.         cout << a + a << endl;
  11.         cout << a - b << endl;
  12.     }
  13.     else
  14.         cout << a % b << endl;
  15.     cout << a / b << endl;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement