You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
421 B

5 years ago
**Compile and run**
5 years ago
```bash
5 years ago
git clone https://github.com/mickenordin/fractions.git
git clone https://github.com/mickenordin/complex-numbers.git
5 years ago
cd complex-numbers
g++ -o cnumber cnumber.cpp
./cnumber
5 years ago
```
5 years ago
**Output**
```
a = 3+2i
a* = 3-2i
a*a* = 13
b = 4-3i
b* = 4+3i
b*b* = 25
a + b = 7-i
(a + b)* = 7+i
a - b = -1+5i
(a - b)* = -1-5i
a * b = 18-i
(a * b)* = 18+i
a / b = (6/25)+(17/25)i
(a / b)* = (6/25)-(17/25)i
```