title: Switch statements range of numbers in c
body: <p>I have an assignment from my instructour he asked me to use switch statements to determine the age of the person, but I cannot find the error here, I did the same as I learned.</p>
  <pre><code>    //check user age
  // error begins here
      switch (age)
      {
          case 0 ... 10:
              puts(&quot;You are less than 10&quot;);
              break;
          case 10 ... 20:
              puts(&quot;You are in your tens&quot;);
              break;
          case 20 ... 30:
              puts(&quot;You are in twenties&quot;);
              break;
          case 30 ... 40:
              puts(&quot;Your are in thirties&quot;);
              break;
          case 40 ... 50:
              puts(&quot;Your are in fourties&quot;);
              break;
          case 50 ... 60:
              puts(&quot;Your are in fifties&quot;);
              break;
          case 60 ... 70:
              puts(&quot;Your are in sixties&quot;);
              break;
          case 70 ... 80:
              puts(&quot;Your are in seventies&quot;);
              break;
          case 80 ... 90:
              puts(&quot;Your are in eighties&quot;);
              break;
          case 90 ... 100:
              puts(&quot;Your are in nineties&quot;);
              break;
          case 100:
              puts(&quot;Your are a 100+ !!&quot;);
              break;
      
      }
  </code></pre>
  <p>**Errors by the compiler are ** :</p>
  <pre><code>Lab2_3.c:48:9: error: this is the first entry overlapping that value
           case 80 ... 90:
           ^~~~
  </code></pre>