Determining which variable has highest value.
in
Programming Questions
•
2 years ago
Hi!
I have 6 integer variables, that are counters counting the occurrences of words in a string, I want to find out which is the highest, so I can find out which word occurs most often.
Is there an easy way to do this?
I have seen functions like max() but that seems to return the highest value I am interested rather in which variable is highest.
Phil
1