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 leapyearleap year routine included
<br>allows for a general-purpose strategemstratagem of solving these types of problems without taking shortcuts to the
<br>solution (although shortcuts are generalygenerally desirable). If there is a change in the criteria, the support for
<br>more (or less) checks can be supported easily, as well as supporting more criteriumcriteria.
<lang rexx>/*REXX program finds months with 5 weekends in them (given a date range)*/
parse arg yStart yStop .