Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 547 Bytes

README.md

File metadata and controls

11 lines (11 loc) · 547 Bytes

ComplexNumber

Complex Number Class A ComplexNumber class contains two data members : one is the real part (R) and the other is imaginary (I) (both integers). Implement the Complex numbers class that contains following functions -

  1. constructor You need to create the appropriate constructor.
  2. plus - This function adds two given complex numbers and updates the first complex number.
  3. multiply - This function multiplies two given complex numbers and updates the first complex number
  4. print -This function prints the given complex number