title: C switch not triggering
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      char deci;
      int hours,min;
  
      printf("Enter a 12-hour time: ");
      scanf("%d:%d %c",&amp;hours,&amp;min,&amp;deci);
  
      if(deci == 'PM'){
          switch(hours){
              case 1: printf("Equivalent 24-hour time: 13:%d",min); break;
              case 2: printf("Equivalent 24-hour time: 14:%d",min); break;
              case 3: printf("Equivalent 24-hour time: 15:%d",min); break;
              case 4: printf("Equivalent 24-hour time: 16:%d",min); break;
              case 5: printf("Equivalent 24-hour time: 17:%d",min); break;
              case 6: printf("Equivalent 24-hour time: 18:%d",min); break;
              case 7: printf("Equivalent 24-hour time: 19:%d",min); break;
              case 8: printf("Equivalent 24-hour time: 20:%d",min); break;
              case 9: printf("Equivalent 24-hour time: 21:%d",min); break;
              case 10: printf("Equivalent 24-hour time: 22:%d",min); break;
              case 11: printf("Equivalent 24-hour time: 23:%d",min); break;
              case 12: printf("Equivalent 24-hour time: 0:%d",min); break;
         }
      }
      else
          printf("Equivalent 24-hour time: %d:%d",hours,min);
  
      return 0;
  }
  </code></pre>
  
  <p>Expected behavior:
      Enter a 12-hour time: 9:11 PM and print this Equivalent time: 21:11, and I get Equivalent time: 9:11. Why does the <code>if()</code> statement never evaluated true?</p>