[edit]
@closed account
you didn't had to delete your post just because I also wrote a similar answer at the same time (just a few seconds before you I assume)... More the answers... better the forum :)
Enter student name: Smith
Enter score: 2
Enter score: 6
Enter score: 7
Enter score: 9
Enter score: 2
Enter 1 to quit or 0 to enter another: 1
26
Exit code: 0 (normal program termination)
Also while ( quit != 0) or maybe while( quit == 0) which one??
I'm assuming you want to add the scores up. So you input a score and add it to the total. total = total + score, or if you like total += score, it's the same.
Then you go round the loop agin and get another score and add that one to the total. That is if my assumption is right that you just want to get the total of the scores.