How to resolve the algorithm Five weekends step by step in the Pascal programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Five weekends step by step in the Pascal programming language

Table of Contents

Problem Statement

The month of October in 2010 has five Fridays, five Saturdays, and five Sundays.

Algorithm suggestions

Extra credit Count and/or show all of the years which do not have at least one five-weekend month (there should be 29).

Let's start with the solution: