human
Write me a code to find numbers that divide X and Y to produce the same remainder and the other steps required given the following:
Find numbers that divide X and Y to produce the same remainder | Function to find the required number as M.
Finding the maximum value among X and Y.
Loop to iterate through maximum value among X and Y ..
If the condition satisfies , then print the value of M.
Driver code"
Solution in Python:
assistant
#Here is code to find numbers that divide X and Y to produce the same remainder and the other steps required.
 def printModulus ( X , Y ) :
	n = max ( X , Y )
	for i in range ( 1 , n + 1 ) :
		if ( X % i == Y % i ) :
			print ( i , end = " ▁ " )
X = 10
Y = 20
printModulus ( X , Y )