Help me in solving LJAJAG23 problem

My issue

this code is not running find issue

My code

#include <stdio.h>

int main() {
    int year;

    //input year
    printf("enter a year:");
    scanf("%d",&year);

    //leap year condition
    if((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
    {
        printf("%d is a leap year.\n",year);
    }
    else{
        printf("%d is not a leap year.\n",year);
    }
    return 0;
}


Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC09/problems/LJAJAG23