H.Rahman H.Rahman - 1 month ago 8
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

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

Comments