Leap Year Checker.

John Baldwin johnb at srchtec.UUCP
Fri Sep 28 08:59:47 AEST 1990


 (Stan Brown, Oak Road Systems) writes:

|In article <24700010 at sunc1>, mccaugh at sunc1.cs.uiuc.edu writes:
|> Ordinarily, a leap-year is a multiple of four, so that--given leap-year y--
|> (y%4 == 0) ought to indicate if y designates a leap-year.

|Bzzzzzt!  Nope, but thanks for playing.  Vanna has lovely gifts for you.

|Every leap year is divisible by four, but not every year divisible by
|four is a leap year.  Since the 18th century (I think 1752, but an
|earlier century in R.C. countries), the algorithm has been...

BRRRAPPP.  Sorry, your time's up.
           What do we have for the programmers, Johnny?


The date was 1582.

-- 
John T. Baldwin                     | "Pereant qui ante nos nostra dixerunt!"
Search Technology, Inc.             | (A plague on those who said our good
johnb%srchtec.uucp at mathcs.emory.edu |  things before we did!)



More information about the Comp.lang.c mailing list