#include<iostream.h>
#include<conio.h>
void swap(int x, int y);
main()
{
clrscr();
int a,b,c;
cout<<"Enter First Number=";
cin>>a;
cout<<"Enter Second Number=";
cin>>b;
swap(a,b);
getch();
}
{
int z;
z=x;
x=y;
y=z;
cout<<"\n first number="<<x;
cout<<"\n first number="<<y;
}
No comments:
Post a Comment