How to determine the highest value entered in array

I would like to ask help from you guys how to determine the highest value entered in an array. Just simple arrays.
You should post this kind of question in the 'beginners' section. And don't use bold text all the time, it kinda makes it hard to read.

Just keep a "max" variable around, set it to the first element in the array, and then iterate over the array comparing each element to the max value. If the element is greater than max, that element becomes the new max.


Also, don't ask a new question 5 minutes after you read the task. it makes it look like you didn't think about this yourself.
Topic archived. No new replies allowed.