Home » Personal collection » Commodore disks » disk50a2_progs1.d64 » find easter
find easter
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Commodore disks » disk50a2_progs1.d64 |
Filename: | find easter |
Read OK: | ✔ |
File size: | 0390 bytes |
Load address: | 0801 |
Exec address: | 0000 |
File contents
10 REM FIND EASTER 20 INPUT"YEAR";Y 30 GN=((Y+1)/19-INT((Y+1)/19))*19 40 GN=INT(GN+0.5) 50 IF GN=0 THEN GN=19 60 SL=(Y+INT(Y/4)+6) 70 SL=(SL/7-INT(SL/7))*7 80 SL=INT(SL+0.5) 90 READ G,D$,S 100 IF G=GN THEN 120 110 GOTO90 120 IF S=SL THEN PRINT D$:END 130 READ G,D$,S 140 GOTO 120 200 DATA 0,"21ST MARCH",5,14,"22ND MARCH",4,3,"23RD MARCH",3,0,"24TH MARCH",2 210 DATA 11,"25TH MARCH",1,0,"26TH MARCH",0,19,"27TH MARCH",6,8,"28TH MARCH",5 220 DATA 0,"29TH MARCH",4,16,"30TH MARCH",3,5,"31ST MARCH",2,0,"1ST APRIL",1 230 DATA 13,"2ND APRIL",0,2,"3RD APRIL",6,0,"4TH APRIL",5,10,"5TH APRIL",4 240 DATA 0,"6TH APRIL",3,18,"7TH APRIL",2,7,"8TH APRIL",1,0,"9TH APRIL",0 250 DATA 15,"10TH APRIL",6,4,"11TH APRIL",5,0,"12TH APRIL",4,12,"13TH APRIL",3 260 DATA 1,"14TH APRIL",2,0,"15TH APRIL",1,9,"16TH APRIL",0,17,"17TH APRIL",6 270 DATA 6,"18TH APRIL",5,0,"19TH APRIL",4,0,"20TH APRIL",3,0,"21ST APRIL",2 280 DATA 0,"22ND APRIL",1,0,"23RD APRIL",0,0,"24TH APRIL",6,0,"25TH APRIL",5
� FIND EASTER ! �"YEAR";Y B GN�((Y�1)�19��((Y�1)�19))�19 S( GN��(GN�0.5) f2 � GN�0 � GN�19 z<