Advertisement
Josif_tepe

Untitled

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