Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Mixed #Fractions #python
ADD COMMENT
Topic
Name
7+8 =