Find the last Sunday of each month: Difference between revisions

m
Line 1:
{{task}} [[Category:Date and time]]
Write a program or a script that returns the last Sundays of each month of a given year. The year may be given through any simple input method in your language (command line, std in, etc.).
of a given year.
The year may be given through any simple input method in your language
(command line, std in, etc.).
 
Example of an expected output:
 
 
<pre>./last_sundays 2013
Line 20 ⟶ 22:
 
;Cf.:
* [[Five weekends]]
* [[Day of the week]]
* [[Five weekends]]
* [[Last Friday of each month]]
 
Anonymous user