You are viewing a single comment's thread. Return to all comments →
int total=0,i=0; if(gender=='g') i=1; while(i<number_of_students) { total+=marks[i]; i+=2; } return total; }
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 →