Advertisement
Josif_tepe

Untitled

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