#include <iostream.h>
void swap(int* p1,int* p2)
{
int t;
t=*p1;
*p1=*p2;
*p2=t;
}
int main()
{
int i,j;
cin>>i>>j;
cout<<i<<","<<j<<endl;
swap(&i,&j);
cout<<i<<","<<j<<endl;
return 0;
}
#include <iostream.h>
void swap(int* p1,int* p2)
{
int t;
t=*p1;
*p1=*p2;
*p2=t;
}
int main()
{
int i,j;
cin>>i>>j;
cout<<i<<","<<j<<endl;
swap(&i,&j);
cout<<i<<","<<j<<endl;
return 0;
}