#include<stdio.h> main() { int m; while(scanf("%d",&m)!=EOF) { if(m%400==0) printf("Leap Year\n"); else if(m%4==0&&m%100!=0) printf("Leap Year\n"); else printf("Not Leap Year\n"); } }
Double click to view unformatted code.