You are viewing a single comment's thread. Return to all comments →
int sum = 0; for (int student = 0; student < number_of_students; student++) { if (gender == 'b') { sum += marks[student]; student++; } else { student++; sum += marks[student]; } } return sum;
Seems like cookies are disabled on this browser, please enable them to open this website
Students Marks Sum
You are viewing a single comment's thread. Return to all comments →