leap year by tabasa

int l(int y){return(y%400==0?0:y%100==0?1:y%4==0?0:1);}\x0d
main(){int i;char d[5];while(scanf("%d", &i)>0)printf("%d is %sa leap year.\n",i,l(i)==0?"":"not ");}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page