# include <stdio.h>
# include <stdlib.h>
int main()
{
int n, tg=0;
printf("Enter the number of subjects : ");
scanf("%d", &n);
while (n>0)
{
int grade;
printf("Enter the marks : ");
scanf("%d", &grade);
n--;
tg+=grade;
}
float avg;
avg = (tg/n);
printf("\nYour Average Grade is %f\n", avg);
return 0;
}
/* It is supposed to show the average grade but it is not displaying any result, but displays this instead "Process returned -1073741676 (0xC0000094) execution time: 6.532 s"