Advertisement
Josif_tepe

Untitled

Nov 3rd, 2023
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void funkcija(int & x, int & y) {
  6.     x += 1;
  7.     y += 1;
  8. }
  9. int main() {
  10.     int x = 10;
  11.     int y = 20;
  12.    
  13.     funkcija(x, y);
  14.     cout << x << " " << y << endl;
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement