Hi everyone,
First I want to say hello to everybody in this site and I hope that you'll welcome me as one of your nice members :o .
I've just started learning C++ language, and now I have to make a small program that counts the average grade for a number of homeworks for a number of students. This program should count only the big grades and leaves the last small grade, like if the user entered (56, 67, 98, 45, 67, 46, 89) the program would add them all together except the last small one which is 45, and then devide them by their number 6 and not 7. I have to put this inside a loop and also I need to use an if statement. I know how to do everything, but I just need to know how to make the part when the program should look for the smallest grade and ignore it. Please help guys and thanks inadvance :D