Iterate through all pairs
for i in range ( 0 , n ) : NEW_LINE INDENT for j in range ( i + 1 , n ) : NEW_LINE INDENT number = int ( getNumber ( arr [ i ] , arr [ j ] ) ) ; NEW_LINE largest = max ( largest , number ) ; NEW_LINE DEDENT DEDENT print ( largest ) ; NEW_LINE