#include<iostream.h>
int main()
{
float a,b,c;
cout<<" Enter the first no. : ";
cin>>a;
cout<<" Enter the second no. : ";
cin>>b;
c = a;
a = b;
b = c;
cout<<endl;
cout<<" Now the value of first = "<<a<<endl;
cout<<" Now the value of second = "<<b<<endl;
return 0;
}
Output:
Enter the first no. : 14
Enter the second no. : 11
Now the value of first = 11
Now the value of second = 14
Press any key to continue |