Jump to content

Last Friday of each month: Difference between revisions

m (→‎{{header|REXX}}: removed some blank lines, changed box gylphs. -- ~~~~)
Line 425:
=={{header|Mathematica}}==
<lang Mathematica>Needs["Calendar`"]
FridaysOfTheYear[Y_] := Cases[Map[{#,DayOfWeek[#]}&,DaysPlus[{Y,1,2}, #]&/@Range[365],{1}],List[{x_,Friday]}->x];
Last[SortBy[Cases[FridaysOfTheYear[2011], {_,#,_}], #[[3]] &]]& /@ Range[12] // Column</lang>
Output:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.