This week's book giveaway is in the Security forum.We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!

# Assignment 3

Eviano Afiemo
Greenhorn
Posts: 21
Hi guys
I can't seem to get my head round the logic behind assignment Java3(Leap).
This is how I understand it:
[i]A particular year is considered to be a leap year if:
it is divisible by 4; but is not divisible by 400 and 100.[i]
Could some one tell me if I've got the right idea or if not please correct me.
confused: confused:

Jim Yingst
Wanderer
Sheriff
Posts: 18671
You want to post this in the Cattle Drive forum; that's what it's for. I'll move it there now...

Matthew Phillips
Ranch Hand
Posts: 2676
A year is always a leap year if it is divisible by 400. A year is also a leap year if it is divisible by 4, but not divisible by 100.
Matthew Phillips

Eviano Afiemo
Greenhorn
Posts: 21
I'm sorry, I thought that's where I posted to.
Thanks Matthew...
[This message has been edited by Eviano Afiemo (edited April 03, 2001).]