title: nested if/else inside Switch Statement
body: <p>I'm trying to nest a if/else inside a case switch statement. When I enter case 'p' or 'P' no matter what character is typed the $15.00 line is printed. I have tried moving/adding {}'s with no change in output.  </p>
  
  <p>Thanks for taking time to help a noob out.</p>
  
  <p>Entire code now here.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
  //variable declarations 
  char typeOfWash, tireShine;
  
  //Menu
  printf("R ---&gt; Regular ($5.00)\n");
  printf("B ---&gt; Bronze ($7.50)\n");
  printf("G ---&gt; Gold ($10.25)\n");
  printf("P ---&gt; Platinum ($15.00)\n");
  printf("Tire Shine can be added to the Gold or Platinum ONLY,");
  printf("for an additional$2.50\n\n");
  
  printf("Enter your selection: ");
  scanf("%c",&amp;typeOfWash);
  
  switch (typeOfWash)
  {
      case 'R': case 'r':
          printf("Your bill total is: $5.00\n");
          break;
      case 'B': case 'b':
          printf("Your bill total is: $7.50\n");
          break;
      case 'G': case 'g':
          printf("Would you Like a Tire Shine? (Y/N): ");
          scanf("%c ",&amp;tireShine);
          if (tireShine == 'Y' || tireShine == 'y')
              printf("Your bill total is: $12.75\n");
          else
              printf("Your bill total is: $10.25\n");
          break;
      case 'P': case 'p':
          printf("Would you Like a Tire Shine? (Y/N): ");
          scanf("%c ",&amp;tireShine);
          printf("%c",tireShine);
          if (tireShine == 'Y' || tireShine == 'y')
              printf("Your bill total is: $17.50\n");
          else
              printf("Your bill total is: $15.00\n");
          break;
      default:
          printf("Invalid Choice");
  
  }
  return 0;
  }
  </code></pre>