No description
Find a file
2020-04-19 23:01:08 +02:00
fractions.cpp Switch to long long 2020-04-19 22:21:13 +02:00
fractions.hpp Fix output and mov sign out front 2020-04-19 22:54:13 +02:00
README.md Update README.md 2020-04-19 23:01:08 +02:00

Compile and run

git clone https://github.com/mickenordin/fractions.git
cd fractions
g++ -o fractions fractions.cpp
./fractions

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