- #include<iostream.h>
- #include<conio.h>
- void main(){
- clrscr();
- int a,b,temp;
- cout<<"enter the first number a=";
- cin>>a;
- cout<<"enter the second number b=";
- cin>>b;
- temp=a;
- a=b;
- b=temp;
- cout<<"the value after swapping are a="<<a<<" "<<"and b="<<b<<endl;
- getch();
- }