+ 8

Challenge: Convert to fraction :)

Write a program (in any language that you like EXCEPT those that support fractions) that gets a number (decimal/integer, positive/negative/zero) from user, and outputs its fraction equivalent in lowest terms. Example: 1.25 = 5/4 -0.56 = -14/25 -7 = -7

13th Aug 2017, 12:01 AM
Jaydee Lucero
Jaydee Lucero - avatar
10 Respuestas
13th Aug 2017, 1:57 AM
deFault
+ 2
https://code.sololearn.com/cSm5T8FCkVR4/?ref=app thats my try in java , firstly i was thinking can it be possible with java , then i tried and finally made it
13th Aug 2017, 9:54 AM
Changed
Changed - avatar
+ 1
nice codes everyone :)) good job :))
14th Aug 2017, 11:52 PM
Jaydee Lucero
Jaydee Lucero - avatar
13th Aug 2017, 3:58 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
https://code.sololearn.com/cj1GGspVrOl7/?ref=app very short and simple
14th Aug 2017, 12:05 PM
Daniil Bannoni Mukhachev
Daniil Bannoni Mukhachev - avatar
26th Aug 2017, 3:35 AM
sayan chandra
sayan chandra - avatar
- 1
Charan change device - jumping helps to focus(for me) ;)
13th Aug 2017, 1:07 AM
Michał Bujakowski
Michał Bujakowski - avatar
- 1
13th Aug 2017, 9:45 PM
Mehmet
Mehmet - avatar