Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
445 B
9
Indexable
Never
#include <stdio.h>
#include <stdio.h>

int main()
{
    int year;
    scanf("%d", &year);
    if (year % 4 == 0)
    {
        if (year % 100 == 0)
        {
            if (year % 400 == 0) {
                printf("1");
            }
            else {
                printf("0");
            }
        }
        else {
            printf("1");
        }
    }
    else {
        printf("0");

    }
    return 0;
}