#include <stdio.h>
// your code goes here
void print_marks(int marks[], int no_of_students);
int main() {
int marks[5]= {40,50,60,70,80};
int no_of_students=5;
print_marks(marks,no_of_students);
return 0;
}
void print_marks(int student_marks[], int student_count){
for(int i=0;i<student_count;i++){
printf("\n%d",(i
+1),student_marks
[i
]);
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXZvaWQgcHJpbnRfbWFya3MoaW50IG1hcmtzW10sIGludCBub19vZl9zdHVkZW50cyk7CglpbnQgbWFpbigpIHsKCWludCBtYXJrc1s1XT0gezQwLDUwLDYwLDcwLDgwfTsKCWludCBub19vZl9zdHVkZW50cz01OwoJCglwcmludF9tYXJrcyhtYXJrcyxub19vZl9zdHVkZW50cyk7CglyZXR1cm4gMDsKCX0KCQoJdm9pZCBwcmludF9tYXJrcyhpbnQgc3R1ZGVudF9tYXJrc1tdLCBpbnQgc3R1ZGVudF9jb3VudCl7Cglmb3IoaW50IGk9MDtpPHN0dWRlbnRfY291bnQ7aSsrKXsKCQlwcmludGYoIlxuJWQiLChpKzEpLHN0dWRlbnRfbWFya3NbaV0pOwoJCQoJfQp9