human
Pairs with GCD equal to one in the given range | Function to print all pairs.
check if even.
we can print all adjacent pairs for i in range ( l , r , 2 ) : print ( " { " , i , " , " , i + 1 , " } , " ).
Driver Code"
Solution in Python:
assistant
#Here is code to pairs with GCD equal to one in the given range and the other steps required.
 def checkPairs ( l , r ) :
	if ( l - r ) % 2 == 0 :
		return False
	return True
if __name__ == " _ _ main _ _ " :
	l , r = 1 , 8
	if checkPairs ( l , r ) :
		print ( " Yes " )
	else :
		print ( " No " )