#include <stdio.h>
int main(void) {
int year;
printf("please enter the year: ");
if(year%400==0){
printf("%d is the leap year.",year
);
}else if (year%100==0){
printf("%d is not leap year.",year
);
}else if (year%4==0){
printf("%d is leap year.",year
);
}else{
printf("%d is not leap year.",year
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgeWVhcjsKCXByaW50ZigicGxlYXNlIGVudGVyIHRoZSB5ZWFyOiAiKTsKCXNjYW5mKCIlZCIsJnllYXIpOwoKCWlmKHllYXIlNDAwPT0wKXsgCgkJcHJpbnRmKCIlZCBpcyB0aGUgbGVhcCB5ZWFyLiIseWVhcik7CgkJCgl9ZWxzZSBpZiAoeWVhciUxMDA9PTApeyAKCQlwcmludGYoIiVkIGlzIG5vdCBsZWFwIHllYXIuIix5ZWFyKTsKCQkKCX1lbHNlIGlmICh5ZWFyJTQ9PTApeyAKCQlwcmludGYoIiVkIGlzIGxlYXAgeWVhci4iLHllYXIpOwoJCQoJfWVsc2V7IAoJCXByaW50ZigiJWQgaXMgbm90IGxlYXAgeWVhci4iLHllYXIpOwoJfQoKICAKICAgCglyZXR1cm4gMDsKfQo=