Advertisement
Dprogrammed1

cplus

Apr 1st, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.     using namespace std;
  3.     void duplicate (int& a, int& b, int& c)
  4.     {
  5.         a *= 2;
  6.         b *= 2;
  7.         c *= 2;
  8.     }
  9.     int main ()
  10.     {
  11.         int x = 1, y = 3, z = 7;
  12.         duplicate (x, y, z);
  13.         cout << x << y << z;
  14.         return 0;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement