Advertisement
Josif_tepe

Untitled

Apr 23rd, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int soberi (int a, int b) {
  6.     int zbir = a + b;
  7.     return zbir;
  8. }
  9. int odzemi (int a, int b) {
  10.     int razlika = a - b;
  11.     return razlika;
  12. }
  13. int pomnozi (int a, int b) {
  14.     int proizvod = 1;
  15.     proizvod = a * b;
  16.     return proizvod;
  17. }
  18. int podeli (int a, int b) {
  19.     int kolicnik = a / b;
  20.     return kolicnik;
  21. }
  22.  
  23. int main()
  24. {
  25.     int n, m;
  26.     cin >> n >> m;
  27.     cout << soberi(n, m) << endl;
  28.     cout << odzemi(n, m) << endl;
  29.     cout << pomnozi(n, m) << endl;
  30.     cout << podeli (n, m) << endl;
  31.  
  32.  
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement