for ( grades = 1; grades >= 1; grades++)
so you initialise grades to 1. (why? considering you ask the user for grades... you are overwriting what you want to know)
you want to loop if grades is greater or equal to 1.
each loop you want to increment grades by 1.
does this logic add up?
sillyboy
Practically a Master Poster
686 posts since Mar 2007
Reputation Points: 85
Solved Threads: 64
that won't work, but the idea is there. you don't even need to introduce a separate counter, but you should really try work this out yourself.
note: you don't need to initialise inside a for loop if you don't want.
sillyboy
Practically a Master Poster
686 posts since Mar 2007
Reputation Points: 85
Solved Threads: 64
which is why i said it won't work...
think logically through your code and it should be pretty simple what is wrong.
sillyboy
Practically a Master Poster
686 posts since Mar 2007
Reputation Points: 85
Solved Threads: 64