mixed fractions in python

Solutions on MaxInterview for mixed fractions in python by the best coders in the world

showing results for - "mixed fractions in python"
Gianluca
09 Sep 2017
1num = int(input('Type numerator'))
2dem = int(input('Type denominator'))
3
4a = num // dem
5b = num % dem
6print 'The mixed number is {} and {}/{}'.format(a, b, dem)
similar questions
queries leading to this page
mixed fractions in python