This:
if year is divisable by 4 and year is not divisible by 100 //leap year
is not complete. A leap year is a year that's divisable by 4 and not by 100unless it can be divided by 400.
Other then that, it looks fine.
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403