Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* Define your function here */
- void SwapValues(int& userVal1, int& userVal2)
- {
- int a = userVal1;
- userVal1 = userVal2;
- userVal2 = a;
- cout << userVal1 << " " << userVal2 << endl;
- }
- int main() {
- /* Type your code here. Your code must call the function. */
- int userVal1;
- int userVal2;
- cin >> userVal1 >> userVal2;
- SwapValues(userVal1, userVal2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement