#include <stdio.h>

int main()
{
    int y;
    printf("Enter any year : ");
    scanf("%d",&y);
    if(y%400==0 || y%4==0 && y%100!=0)
    {
        printf("Year is leapyear");
    }
    else
    {
        printf("year is not a leapyear");
    }
    return 0;
}

Embed on website

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