Can anyone fix my code?
I can not solve this question please help me out Q: 40 students in a class appeared in their examination. Their mark sheets have been given to you. The grade column of the mark sheet contains the Grade (A, B, C or F) obtained by the student. Write a function to calculate the total number of students who got F grade. Use Array to store grade [char grade [40]]. Grade.txt B A My ans: #include<stdio.h> #include<string.h> struct student { char grade[2]; }; int gradef(struct student a[], int si) { int c=0; for (int i = 0; i < 40; i++) { if(a[i].g!=F) { c++; } } return 0; } int main() { struct student s[40]; freopen ("Grade.txt","r",stdin); for (char i = 0; i < 40; i++) { scanf("%s",s[i].grade); } for (char i = 0; i < 40; i++) { printf("%s",s[i].grade); } char n = gradeF(s,40); printf("%s", n): }