Exp 1
Exp 1
Program:
#include <iostream.h>
#include<conio.h>
class complex
public :
};
void main( )
complex a, b, c;
if ( c.img >= 0 )
cout << "Sum of two complex numbers = " << c.real << " + " << c.img << "i";
else
cout << "Sum of two complex numbers = " << c.real << " " << c.img << "i";
getch( );
*******************************************************************************************
Output:
a =2
b =3
c=3
d =2