Jump to content

Find the last Sunday of each month: Difference between revisions

m
Line 4,405:
 
$constant SUNDAY = 0
var m, y = integer
input "Display last Sundays in what year"; y
print "Last Sunday of each month in 2021"
for m = 1 to 12
print shortmonth(m);" ";lastkday(SUNDAY, m, 2021y)
next m
 
end</lang>
{{out}}
<pre>
LastDisplay sundaylast ofSundays eachin monthwhat inyear? 2021
Jan 21
Feb 28
211

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.