Update README.md

main
Mikael Nordin 4 years ago committed by GitHub
parent 797347f442
commit b9e3db439f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,4 @@
**Compile and run**
```bash
git clone https://github.com/mickenordin/fractions.git
git clone https://github.com/mickenordin/complex-numbers.git
@ -5,3 +6,20 @@ cd complex-numbers
g++ -o cnumber cnumber.cpp
./cnumber
```
**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
```

Loading…
Cancel
Save