Easter by nn

END{for(y=2e3;y++<3e3;){x=int(3*int(y/100-3)/4)
n=int(y%19*11+y/300+36-x)%30
n-=n+y%19-42&&n-25
n-=n>23?80:50
n=int(x+n-5*y/4)%7-n
printf"%02d "(n>30?"APRIL":"MARCH")", 0"y RS,n%31+1}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page