This program swaps two numbers entered by the user.
[code='cpp']#include
void swap(int,int);
void main()
{
int a,b;
cout<<"Enter the numbers";
cin>>a>>b;
swap(a,b);
cout<<"The number which you entered were "<
void swap(int x, int y)
{
int temp;
temp=x;
x=y;
y=temp;
cout<<"The swapped numbers are as follows"<
[/code]
