I have to know which of these variable have the highest value:
A=1
B=500
C=100
D=700
E=5
F=1000
Which is the easiest way to do this?
I have to know which of these variable have the highest value:
A=1
B=500
C=100
D=700
E=5
F=1000
Which is the easiest way to do this?
You can pick one of them as the potential variable with the highest value. Then iterate through all the variables. At each iteration, see if that variable has a higher value than your candidate. If it does, replace your candidate. When you have iterated through all the variables, the potential candidate variable is the actual variable with the highest value.