The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Leap year

Posted by Lylah on February 12, 2002 at 6:08 PM

How do i write a program to determine if a certain year is a leap year or not?
I have the pseudocode for it.
here it is

if a year is divisible by 4
its a leap year
but if it is divisible by 100
it is not a leap year
but if it is divisible by 400
it is a leap year





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us