title: Program to find day on 1st jan of years 01 to 99; switch statement not working
body: <pre><code>    #include &lt;stdio.h&gt;
      #include &lt;conio.h&gt;
  
       int main(void)
        {
        int year,dayextra,q,day;
        printf("enter the year");
        scanf("%d",&amp;year);
        year=year-1;
        q=year/4;
        dayextra=year+q;
        day=dayextra%7;
        switch(day)
        {
         case '3':printf("\nmonday");
             break;
         case '4':printf("\ntuesday");
             break;
         case '5':printf("\nwed");
             break;
         case '6':printf("\nthu");
             break;
         case '7':printf("\nfri");
          break;
         case '1':printf("\nsat");
             break;
         case '2':printf("\nsun");
             break;  
        }
                getch();
         }
  </code></pre>