#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int marks_summation(int* p, int number_of_students, char gender) {
int s = 0, i = 0;
if (gender == 'g') {
i++;
}
for (; i < number_of_students; i = i+2) {
s += p[i];
}
return s;
}
Thursday, January 16, 2020
Subscribe to:
Post Comments (Atom)
where we did define boys in the above mentioned code?
ReplyDeletestill the code is running fine !!!!
can anyone help me out from this confusion?
Informative content ! :)
ReplyDeleteAlso check Students Marks Sum – Hacker Rank Solution
https://www.codeworld19.com/students-marks-sum-hacker-rank-solution/