===========================================================================
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();
}
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();
}
===========================================================================
No comments:
Post a Comment