Article View: comp.std.c
Article #4707Re: How to calculate the Holy Easter.
From: Ted Timmons
Date: Fri, 26 Jan 1996 17:58
Date: Fri, 26 Jan 1996 17:58
22 lines
939 bytes
939 bytes
Andrea Chierici (chierici@cs.unibo.it) wrote:
: Hi, can anybody send me a C function to calculate the Easter of every year?
: Thanks in advance,
Sounds like homework to me. Try this:
#include <christian.h>
#include <catholic.h>
#include <stdio.h>
main (){
int i;
for (i=0;i<365;++i)
if (i == EASTER)
printf ("The %i day is easter.\n", i);
}
--
-=TED=- | Owner, HOMEBUILT-L mailing list
tedder@teleport.com | "subscribe HOMEBUILT-L" to majordomo@teleport.com
Technical Details
Message-ID:
<4eb4o8$sl3@maureen.teleport.com>Path:
arc1-ca.pugleaf.net!nntp.teleport.com!tedderReferences:
<4e5kmh$2g9@leporello.cs.unibo.it>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.teleport.com!tedder From: tedder@teleport.com (Ted Timmons) Newsgroups: comp.std.c Subject: Re: How to calculate the Holy Easter. Date: 26 Jan 1996 17:58:32 GMT Organization: Vancouver, WA Message-ID: <4eb4o8$sl3@maureen.teleport.com> References: <4e5kmh$2g9@leporello.cs.unibo.it> NNTP-Posting-Host: linda.teleport.com X-Newsreader: TIN [version 1.2 PL2]