Below is what I have so far:
I don\'t know how to exclude 0 as a min number though. The assignment asks for 0 to be the exit number so I need to have the lowest numb
You just need to keep track of a max value like this:
int maxValue = 0;
Then as you iterate through the numbers, keep setting the maxValue to the next value if it is greater than the maxValue:
if (value > maxValue) { maxValue = value; }
Repeat in the opposite direction for minValue.