Any one can help me to solve it plz .. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Any one can help me to solve it plz ..

Write a program to add,subtract,multiply or divide two complex numbers .

21st Oct 2016, 11:12 AM
miss comp engineer
miss comp engineer - avatar
3 Answers
+ 1
what do you mean by complex numbers?
21st Oct 2016, 4:04 PM
Zeke Williams
Zeke Williams - avatar
0
Like this (for example)----> 4+5i where 4 is real number ,5 imaginary number
21st Oct 2016, 4:09 PM
miss comp engineer
miss comp engineer - avatar
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; }
2nd Jan 2017, 4:15 AM
U “usmaks” Shim
U “usmaks” Shim - avatar