I am having a problem finding the max and min in my program. The program ask the user to input grades and enter a negative number in order to stop inputting grades but when I tried to find the min it keeps giving me that negative number instead of the actual lowest grade how can I change that?
Please post the whole code so we can see what's going to be printed to the screen. Plus since you are defining the variables, not entirely sure where the -4 even comes from...this is why we need to see the rest of the code to see what exactly you're doing.
Thanks Fovv I had used else if (grad < min && grad > 0) earlier and it didn't work but I realize now that I had to flip max and min I was finding the max first so it was messing it up Thanks so much =)