ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
790 B

  1. 10 REM EASTER
  2. 12 REM
  3. 14 INPUT "YEAR ";Y
  4. 16 IF Y<1583 THEN 14
  5. 18 Y1=Y/19
  6. 20 A=INT((Y1-INT(Y1))*19+.001)
  7. 22 B1=Y/100: B=INT(B1)
  8. 24 C=INT((B1-INT(B1))*100+.001)
  9. 26 D1=B/4: D=INT(D1)
  10. 28 E=INT((D1-INT(D1))*4+.001)
  11. 30 F=INT(((B+8)/25)+.001)
  12. 32 G=INT((B-F+1)/3)
  13. 34 H1=(19*A+B-D-G+15)/30
  14. 36 H=INT((H1-INT(H1))*30+.001)
  15. 38 C1=C/4: I=INT(C1)
  16. 40 K=INT((C1-I)*4+.001)
  17. 42 L1=(32+2*E+2*I-H-K)/7
  18. 44 L=INT((L1-INT(L1))*7+.001)
  19. 46 M=INT((A+11*H+22*L)/451)
  20. 48 N1=(H+L-7*M+114)/31: N=INT(N1)
  21. 50 P=INT((N1-N)*31+.001)
  22. 52 N$="APRIL"
  23. 54 IF N=3 THEN N$="MARCH"
  24. 56 PRINT "EASTER IS ON ";N$;P+1
  25. 58 INPUT "ANOTHER (Y OR N) ";Q$
  26. 60 IF Q$="Y" THEN 14
  27. 62 END
  28. 70 REM ------------------------
  29. 80 REM APPEARED IN ASTRONOMICAL
  30. 90 REM COMPUTING, SKY & TELE-
  31. 95 REM SCOPE, MARCH, 1986
  32. 99 REM ------------------------