RosettaCodeData/Task/Long-year/Ring/long-year.ring

10 lines
219 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
see "long years 2000-2099: "
for year = 2000 to 2100
num1 = (year-1900)%7
num2 = floor((year-1904)/4)
num3 = (num1+num2+5)%7
if num3 = 0 or (num1 = 6 and num3 = 1)
see "" + year + " "
ok
next