#include<stdio.h>
int main()
{
int i,n,A,B,C,D,E;
double grade,total;
printf("Enter n:");
total=0;grade>=0;A=B=C=D=E=0;
for(i=1;i<=n;i++){
printf("Enter grade #%d:",i);
scanf("%lf",&grade);
total=total+grade;
if(grade<=59) E++;
else if(grade<=69) D++;
else if(grade<=79) C++;
else if(grade<=89) B++;
else (grade<=100) A++;
}
printf("Grade average=%.2f\n",total/n);
printf("A(100-90)=%d\nB(89-80)=%d\nC(79-70)=%d\nD(69-60)=%d\nE(0-59)=%d\n",A,B,C,D,E);
return 0;
}