I have an integer value of 10 and array list with integer numbers, how can I check if the array contains a sum of two values that give a result 10 ?
x = 10
arr[1, 11, 7, 3, 5, 2]
Example: I need to write script that does this: arr[2] + arr[3] = 10