tag:blogger.com,1999:blog-37872616.post6085523685364269922..comments2024-03-29T17:14:25.039+08:00Comments on BULLy the BEAR: Leap yearla papillionhttp://www.blogger.com/profile/01372278083694506953noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-37872616.post-42520717140761589012008-03-02T12:26:00.000+08:002008-03-02T12:26:00.000+08:00Hi Grey,Not really. There are 2 cases for leap yea...Hi Grey,<BR/><BR/>Not really. There are 2 cases for leap year:<BR/><BR/>1) Divisible by 4 and not divisible by 100<BR/><BR/>2) Divisible by 400<BR/><BR/>E.g. 1700<BR/>1700 is divisible by 4, but 1700 is also divisible by 100, hence it's not a leap year.<BR/><BR/>E.g. 1600<BR/>1600 is divisible by 4, but 1600 is also divisible by 100, hence from (1) it's not a leap year. But 1600 is divisible by 400, it satisfies (2), hence it's a leap year.la papillionhttps://www.blogger.com/profile/01372278083694506953noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-2530976687572530002008-03-02T00:06:00.000+08:002008-03-02T00:06:00.000+08:00Since 400 is divisible by 4, so your algorithm can...Since 400 is divisible by 4, so your algorithm can be simplified to any year that's divisible by 4 is a leap year;Greyhttps://www.blogger.com/profile/00803274842071036346noreply@blogger.com