How would I be able to find the max value in an array?
Thanks
Printable View
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.