Header Ads

Python programs coding series - find reminder and quotient for a given numbers




Finding reminder and quotient for a given numbers


#find reminder and quotient for a given numbers
#using math module to use the mathematicla function floor to round the value
import math
x = int(input("Enter first number : "))
y = int(input("Enter second number : "))

reminder = x%y
quotient = math.floor(x/y)

print("The reminder is "+str(reminder))
print("The quotient is "+str(quotient))



Output

No comments

Theme images by sebastian-julian. Powered by Blogger.