Five weekends: Difference between revisions

Content added Content deleted
(Added Quackery.)
(→‎{{header|Quackery}}: added count of months)
Line 5,322: Line 5,322:
else drop ]
else drop ]
temp take swap
temp take swap
say "There are "
dup size echo
say " months with five weekends."
cr cr
5 split swap
5 split swap
say "Five weekends: "
say "Five weekends: "
Line 5,347: Line 5,351:
{{out}}
{{out}}


<pre>There are 201 months with five weekends.
<pre>Five weekends: March 1901, August 1902, May 1903, January 1904, July 1904

Five weekends: March 1901, August 1902, May 1903, January 1904, July 1904
...
...
March 2097, August 2098, May 2099, January 2100, October 2100
March 2097, August 2098, May 2099, January 2100, October 2100