Untitled
unknown
c_cpp
2 years ago
304 B
1
Indexable
Never
#include <stdio.h> int main() { int year; scanf("%d", &year); year += 1911; if (year % 4 == 0) { if (year % 100 == 0) { if (year % 400 == 0) { printf("%d", 1); } else { printf("%d", 0); } }else { printf("%d", 1); } } else { printf("%d", 0); } }