I am writing a program for a class where we have to use a while and a dowhile statement in. We have to ask the user to enter a set of numbers and then tell them the maximum number and the minimum number at the same time.
I will have them enter the number and then ask if they want to enter another number--depending on what they enter it will either loop or kick out. I have this figured out.
Now I will store the number they enter into a index. But what I cant figure out is how to get the max number and min number out of this index and display it for the user. Any hints/tips/suggestions.
Thank you for your help!