Mixed Fractions in python code example
Example: 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)
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)