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.
Mikael Nordin 9b84ecf85c
Update README.md
1 year ago
README.md Update README.md 1 year ago
fractions.cpp Switch to long long 1 year ago
fractions.hpp Fix output and mov sign out front 1 year ago

README.md

Compile and run

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

Output

7/3=(7/3)
7/3=2.333333333
1/11=(1/11)
1/11=0.09090909091
(7/3)+(1/11)=(80/33)
(7/3)+(1/11)=2.424242424
(7/3)-(1/11)=(74/33)
(7/3)-(1/11)=2.242424242
(7/3)*(1/11)=(7/33)
(7/3)*(1/11)=0.2121212121
(7/3)/(1/11)=(77/3)
(7/3)/(1/11)=25.66666667
0.75=(3/4)