If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

What are you trying to do with gradeNumber?
You have an unconditional return in the loop.
You can only return one value.
Your function calls after the loop won't be executed because of the return in the for loop.

I thought that it would first look at all the things above main() and then start the program. So long as it was above main then I would be fine. I will change that.

What I was trying to do was get the number and add all the numbers together and then average so I could give a grade.