title: How can I use ranges in a switch case statement in C?
body: <p>My logic is:</p>
  
  <pre><code>if number is between 1 to 10, execute first case statement
  if number is from 20 to 30, execute second case statement
  </code></pre>
  
  <p>is there a solution other than the one below?  </p>
  
  <pre><code>case '1' ... '10':
  case '20' ... '30':
  </code></pre>