human
Pair with given product | Set 1 ( Find if any pair exists ) | Returns true if there is a pair in arr [ 0. . n - 1 ] with product equal to x.
Consider all possible pairs and check for every pair ..
Driver code"
Solution in Python:
 ... What is a code to pair with given product and the other steps required?
assistant
#Here is code to pair with given product and the other steps required.
 def isProduct ( arr , n , x ) :
	for i in arr :
		for j in arr :
			if i * j == x :
				return True
	return False
arr = [ 10 , 20 , 9 , 40 ]
x = 400
n = len ( arr )
if ( isProduct ( arr , n , x ) == True ) :
	print ( " Yes " )
else :
	print ( " No " )
x = 900
if ( isProduct ( arr , n , x ) ) :
	print ( " Yes " )
else :
	print ( " No " )