Use [code][/code] tags around your code to format it nicely.
On the line after your for loop, you have sum / 10 == avg;. This is incorrect for two reasons: one, that is a comparison, not assignment, and thus doesn't do anything (I presume you meant to do avg = sum / 10;, two, the sum should be divided by the num of elements in the array, not by 10.
Oh my goodness, that is EXACTLY what I meant. I kept getting an error when I just did = avg. Stupid mistake. I took you advice, and it still comes out as 0%. Any ideas?
Edit: And you seem to have flipped the operands to += inside your loop as well; you probably want sum += grades[i], and you also need to initialize sum to 0 before trying to use it.
Thank you! it is now working. I need to stop flipping the operands. Thanks you again for all the help, this helped me understand arrays that much more.