human
Find pairs in array whose sums already exist in array | Function to find pair whose sum exists in arr [ ].
Driver code"
Solution in Python:
assistant
#Here is code to find pairs in array whose sums already exist in array and the other steps required.
 def findPair ( arr , n ) :
	found = False
	for i in range ( 0 , n ) :
		for j in range ( i + 1 , n ) :
			for k in range ( 0 , n ) :
				if ( arr [ i ] + arr [ j ] == arr [ k ] ) :
					print ( arr [ i ] , arr [ j ] )
					found = True
	if ( found == False ) :
		print ( " Not ▁ exist " )
if __name__ == ' _ _ main _ _ ' :
	arr = [ 10 , 4 , 8 , 13 , 5 ]
	n = len ( arr )
	findPair ( arr , n )