#include <stdio.h>

int main() {
    int year;
    scanf("%d",&year);
    if(year%400==0){
        printf("%d is a leap year",year);
    }
    else if(year%100==0){
        printf("%d is not a leap year",year);
    }
    else if(year%4==0){
        printf("%d is a leap year ",year);
    }
    else{
        printf("it is not a leap year");
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: