This day comes in every 4th year, doesn't exist in every 100th year but is there every 400th year. No, it isn't that complicated...
if ( (year%4==0 && year%100!=0) || year%400==0) return true;
Yes, it is February 29. I am not sure what I was going to write about in this post, but I was sure I had to write a post on this day which will not be for another 4 years. So there! I had written something now :D
No comments:
Post a Comment