Complex number just like x+yi where x is a real number and y is imaginary. Here, I use complex number as a variable.

Complex Structure has,

Copy the code and run...