Help me in solving AVGPROBLEM problem

My issue

tell the code

My code

#include <stdio.h>
 int main() 
{
    int A,B,C;
    scan(%d%d%d,A,B,C);
 float avg ;
    avg= (A+B)/2;
    if(avg>C)
    {
        printf("YES");
        
    }
    else
    {printf("NO");
    }
    return 0;
}

Learning course: 500 to 1000 difficulty problems
Problem Link: Greater Average Practice Problem in - CodeChef

hey dood,there are some syntax error in line 5

#include<stdio.h>
 int main() 
{
    int A,B,C;
    scanf("%d%d%d",&A,&B,&C);
 float avg ;
    avg= (A+B)/2;
    if(avg>C)
    {
        printf("YES");
        }
    else
    {printf("NO");
    }
    return 0;
}