title: Switch statement task at Uni
body: <p>I have this switch statement question at uni and I kind of sorted out how to do it except the very first case. It is about a number less than 0. This is the only bit I can't figure out. Have a look.</p>
  
  <p>Write a C program that repeatedly asks the user to enter an integer 
  number.</p>
  
  <ul>
  <li>If the number is negative then the program should print out 
  the message “BYE” and stop</li>
  <li>If the number is either 0 or 1 then it should print out “VERY 
  LOW”</li>
  <li>If the number is either 2 or 3 it should print out “LOW”</li>
  <li>If the number is either 4 or 5 it should print out “MEDIUM”</li>
  <li>If the number is either 6 or 7 it should print out “HIGH”</li>
  <li>If the number is either 8 or 9 it should print out “VERY HIGH”</li>
  <li>Any other number should cause the program to output the 
  message “Input a value between 0 and 9 only”
  Use a switch statement inside the loop to select the appropriate 
  message to print.</li>
  </ul>
  
  <p>This is my piece of code and I'm trying to figure out the first case without a name.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
      int main()
      {
          int value;
  
          printf("Enter a value: ");
          scanf(" %i",&amp;value);
  
          switch ( value )
          {
              case : printf("BYE\n"); break;
          case 0:
          case 1: printf("VERY LOW\n"); break;
          case 2:
          case 3: printf("LOW\n"); break;
          case 4:
              case 5: printf("MEDIUM\n"); break;
          case 6:
          case 7: printf("HIGH\n"); break;
          case 8:
              case 9: printf("VERY HIGH\n"); break; 
          default: printf("Input a value between 0 and 9 only\n"); break;
          }
  
          return 0;
      }
  </code></pre>