0
Any one can help me to solve it plz ..
Write a program to add,subtract,multiply or divide two complex numbers .
3 Answers
+ 1
what do you mean by complex numbers?
0
Like this (for example)----> 4+5i where 4 is real number ,5 imaginary number
0
:code
#include <iostream>
#include <complex>
using namespace std;
typdef complex<double> dcomplex;
int main(){
dcomplex a;
a = dcomplex(123, 456);
cout << a.real() <<endl;
return 0;
}