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
Enter first number : 10 Enter second number : 3 The reminder is 1 The quotient is 3
