Advertisement
Josif_tepe

Untitled

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