human
Generate a pair of integers from a range [ L , R ] whose LCM also lies within the range | Python3 implementation of the above approach.
Checking if any pair is possible or not in range ( l , r ).
If not possible print ( - 1 ).
Print LCM pair.
Driver Code.
Function call"
How can the above be solved in Python?
 What is a code to generate a pair of integers from a range [ L , R ] whose LCM also lies within the range and the other steps required?
assistant
#Here is code to generate a pair of integers from a range [ L , R ] whose LCM also lies within the range and the other steps required.
 def lcmpair ( l , r ) :
	x = l
	y = 2 * l
	if ( y > r ) :
		print ( - 1 )
	else :
		print ( " X ▁ = ▁ { } ▁ Y ▁ = ▁ { } " . format ( x , y ) )
l = 13
r = 69
lcmpair ( l , r )