/*************************
program: swap two integers
**************************/

#include <iostream>
using namespace std;

void swapper (int & x, int & y);

int main()
{
	int myx=3, myy=4;

	cout << "Integers before swapping " << myx << " " << myy << endl;
	swapper (myx, myy);
	cout << "Integers after swapping " << myx << " " << myy << endl;

	return 0;
}

void swapper (int & x, int & y)
{
		int TempVal = x;
		x = y;
		y = TempVal;
}

