Anonymous user
Five weekends: Difference between revisions
m
→{{header|REXX}}: corrected two misspellings and two wrong words (leap year, criterium). -- ~~~~
m (→{{header|REXX}}: changed the version names to reflect their usage. -- ~~~~) |
m (→{{header|REXX}}: corrected two misspellings and two wrong words (leap year, criterium). -- ~~~~) |
||
Line 2,560:
<br>Not all REXX interpreters support this feature.
<br><br>Programming justification note: the inclusion of leapyear checking is present even though it wasn't needed as
<br>February can be excluded from the criteria of having five weekends. Having the
<br>allows for a general-purpose
<br>solution (although shortcuts are
<br>more (or less) checks can be supported easily, as well as supporting more
<lang rexx>/*REXX program finds months with 5 weekends in them (given a date range)*/
parse arg yStart yStop .
|