Advertisement
irmantas_radavicius

Untitled

Mar 19th, 2024
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sstream>
  4. #include <vector>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. int keisti(int &a, int &b){
  10.     cout << "AB "<< a << " " << b << endl;
  11.     a = 1;
  12.     b = 2;
  13.     cout << "AB "<< a << " " << b << endl;
  14.     return a+b;
  15. }
  16.  
  17. int main(){
  18.     int x = 4;
  19.     int y = 5;
  20.     cout << "XY " << x << " " << y << endl;
  21.     keisti(x, y);
  22.     cout << "XY "<< x << " " << y << endl;
  23.  
  24.     return 0;
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement