Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Long-year/BCPL/long-year.bcpl
Normal file
8
Task/Long-year/BCPL/long-year.bcpl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
get "libhdr"
|
||||
|
||||
let p(y) = (y + y/4 - y/100 + y/400) rem 7
|
||||
let longyear(y) = p(y)=4 | p(y-1)=3
|
||||
|
||||
let start() be
|
||||
for y = 2000 to 2100
|
||||
if longyear(y) do writef("%N*N", y)
|
||||
Loading…
Add table
Add a link
Reference in a new issue