#include<iostream>
#include<conio.h>
using namespace std;
//tabee
//meghdare 2 parametre vorodi ra jabeja mikonad.
void swap (int *p, int *q)
{
	int temp;
	temp = *p;
	*p = *q;
	*q = temp;
}

int main()
{
	int a, b;
	cout << "Please Enter Value of a and b" << endl;
	cout << "a=";
	cin >> a;
	cout << "b=";
	cin >> b;
	swap (&a, &b);
	cout << "swaped values are : a=" << a << " , b=" << b;
	getch();
}
