Skip to content

Commit

Permalink
Comments and Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
toufiqmusah committed Nov 10, 2022
1 parent 4e7f339 commit 3627e39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Student_Grading_Application.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#include <stdio.h>

//Global Variables
float meanMark;
char grade (float s);

int main (){
int length;
int sum = 0;

//Student Data
printf("Enter the total number of students:\n");
scanf("%d",&length);
float marks [length];
Expand Down Expand Up @@ -67,7 +72,7 @@ printf("\ncwa = %.2f\n", cwa);
if ((s>=70)&&(s<=100))
return 'A';

else if((70>s)&& (s>=60))
else if((70<s)&& (s>=60))
return'B';

else if((60>s)&&(s>=50))
Expand All @@ -80,6 +85,6 @@ printf("\ncwa = %.2f\n", cwa);
return'F';

else
return 'I';
return "None";
}

0 comments on commit 3627e39

Please sign in to comment.