Friday, 13 July 2018

Interchanging the value of two numbers

===========================================================================
                                CODING



#include<conio.h>
#include<iostream.h>
#include<math.h>

void main()
{
clrscr();

float a,b;
cout<<"Enter a and b:- ";
cin>>a>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<"\n The value of a isÆ "<<a<<"\n The value of b isÆ "<<b;

getch();
}


===========================================================================


                                OUTPUT



No comments:

Post a Comment