Loop statement

how to get the sum of grade using while loop, do-while loop, for loop. i need this for my midterm exam. please help me. "ASAP"

example: 1st grade 88
2nd grade 80
3rd grade 78
devide into 3.. total=(sum)/3
print the average:

What do you know about those loops?
http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.