Answers for "Mixed Fractions in python"

-1

Mixed Fractions in python

num = int(input('Type numerator'))
dem = int(input('Type denominator'))

a = num // dem
b = num % dem
print 'The mixed number is {} and {}/{}'.format(a, b, dem)
Posted by: Guest on June-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language