title: Display Holiday Name based on the Month and Day entered in c program
body: <p>I have a programming class and currently has a homework to show the holiday name based on the month and day entered by a user in C program.</p>
  
  <p>Whenever I compile and run the program, there is no error. However, if I enter any month and hit enter, it just returns New year's day and it does not ask for the date. It is supposed to require both the month and the date then display the corresponding holiday but it seems to be not working.</p>
  
  <p>I was wondering if you could provide inputs on what would be the correct syntax.</p>
  
  <p>Below is the code I tried to create:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main () {
  
      char m;
      int d;
  
      printf("Enter Month: ");
      scanf("%c", &amp;m);
      printf("Enter Date: ");
      scanf("%d",&amp;d);
  
      if (m ="January" &amp;&amp; d == 1)
          printf("New year's day ");
      else if (m ="July" &amp;&amp; d ==1 )
          printf("Canada day ");
      else if (m = "December" &amp;&amp; d ==25)
          printf("Christmas day ");
      else
          printf("%c %d does not correspond to a fixed-date holiday ", m, d);
  
      return 0;
  }
  </code></pre>