Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!motcid!yedinak From: yedinak@motcid.UUCP (Mark A. Yedinak) Newsgroups: comp.lang.c Subject: Re: Leap Year Checker. Message-ID: <4404@catfish11.UUCP> Date: 28 Sep 90 14:14:07 GMT References: <9464@uhccux.uhcc.Hawaii.Edu> <24700010@sunc1> <1115.26ff47b6@iccgcc.decnet.ab.com> <242@srchtec.UUCP> Organization: MOTOROLA INC. General Systems Sector Lines: 31 johnb@srchtec.UUCP (John Baldwin) writes: : (Stan Brown, Oak Road Systems) writes: :|In article <24700010@sunc1>, mccaugh@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. Sorry John, our judges reviewed your answer and it is incorrect. The original answer was correct. The missing days were removed from September, in the year 1752. The dates removed were September 3 through September 13, inclusive. And here is Jay to tell us what parting gifts we have for John. -- Mark A. Yedinak - uunet!motcid!yedinak * "Don't take life too Motorola - General Systems Sector * seriously, you will 3205 Wilke Road, Arlington Heights, IL 60004 * never get out of it 708-632-2874 (I said it, not the big M) * ALIVE!"