How would I be able to find the max value in an array?
Thanks
How would I be able to find the max value in an array?
Thanks
a for loop and a temporary variable. Set the variable to the first value, then loop through the rest. If any of these values are higher than Temp, set Temp to that value. After the loop, Temp will hold the highest value.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.