Last Friday of each month: Difference between revisions

Content added Content deleted
Line 23: Line 23:


=={{header|C}}==
=={{header|C}}==
{{incorrect|C|<code>./last_fridays 2011</code> gives thursdays instead of fridays}}

<lang c>#define _XOPEN_SOURCE
<lang c>#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdio.h>
Line 49: Line 51:
return 0;
return 0;
}</lang>
}</lang>

=={{header|C++}}==
=={{header|C++}}==
called with <code>./last_fridays 2012</code>
called with <code>./last_fridays 2012</code>