title: Count the number of Monday's that fall on the 13th within a given year, if January 1 is input C++
body: <blockquote>
    <p>Count the number of Mondays that fall on the 13th within a given year if January 1 is input (there is no leap year consideration) C++.</p>
  </blockquote>
  
  <p>I have already found <a href="https://stackoverflow.com/questions/20169947/how-can-i-find-how-many-times-friday-the-13th-appears-in-a-year">this</a> Q&amp;A on StackOverflow, but it seems too complicated to be my homework problem. I am just a freshman with a math major and a beginner in C++. Therefore, I was wondering if there is far easier and elementary ways to solve this problem?</p>
  
  <p>Well, I got stuck right after writing the following little code...</p>
  
  <pre><code>#include &lt;bits/stdc++.h&gt;
  using namespace std;
  
  int main()
  {
  enum Month = {Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec};
  enum week_day = {Mon, Tue, Wed, Thurs, Fri, Sat, Sun};
  int jan1;
  cin&gt;&gt;jan1
  }
  </code></pre>
  
  <p>Because I cannot determine what is the best way to count the asked Mondays and how to write it in code.</p>
  
  <p>Thanks in advance.</p>