The input is not very clear that decimals is a must
InterviewBit Problems
Ratio of Boys and Girls : Unsolved
noel-chan
2018-06-18 03:25:19 UTC
#1
example,
1 : 2 ratio should be expressed as 1/2 = 0.50
1 : 4 ratio should be expressed as 1/4 = 0.25