Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
445 B
1
Indexable
#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;
}