ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2056. Scholarship

What's wrong......???
Posted by Al Arafat Tanin 7 Mar 2018 04:32
#include<stdio.h>
int main()
{
    int n , m , sum=0 ;
    double ava;
    scanf("%d",&n);
    int mark[11];
    for(m=0;m<n;m++){
        scanf("%d",&mark[m]);    }
    for(m=0;m<n;m++){
        sum=sum+mark[m];
    }
    ava=(double)sum/n;
    if(ava<=3)printf("None\n");
    else if (ava>=5)printf("Named\n");
    else if(ava>=4.5)printf("High\n");
    else printf("Common\n");
}