/* Grading */ #include #include int main() { int s1,s2,s3; printf("Enter the three scores\n"); scanf("%d %d %d",&s1,&s2,&s3); float avg; avg=(double)(s1+s2+s3)/3; if(avg>=94) printf("Grade=A"); if(avg<94 && avg>=90) printf("Grade=A-"); if(avg<90 && avg>=80) printf("Grade=B"); if(avg<80 && avg>=70) printf("Grade=B-"); if(avg<70 && avg>=60) printf("Grade=C"); if(avg<60) printf("Grade=F\n"); system("pause"); }