Hi,

I have two arrays. Array 1 is Y[0],Y[1],Y[2] and Y[3]. Array 2 is X[0],X[1],X[2] and X[3]

How to find the highest value of variables within array 1? If Y[2] is the highest value, how to write a code to show that the best value of array 2 is X[2]?

Thank you.