H.Rahman H.Rahman - 10 months ago 53
C++ Question

Each number of students grades and average

I have been trying to get total and average of each student in a class. I write this c++ program but this problem keeps adding previous students total and average. So how do I solve this problem?
Here is the code

Answer Source

Before your j loop you want to reset average and total to be 0 again