#include<iostream
>
#include<conio.h
>
using namespace std;
int main()
{
int num1, num2, temp;
cout<<"Enter two numbers for swapping\n";
cin>>num1>>num2;
cout<<"Numbers before swapping\n";
cout<<"Num1 = "<<num1<<
"\tNum1 = "<<num2;
temp=num1;
num1=num2;
num2=temp;
cout<<"\nNumbers sfter swapping\n";
cout<<"Num1 = "<<num1<<
"\tNum2 = "<<num2;
getch();
return 0;
}
No comments:
Post a Comment