title: How can I replace this code with one if statement?
body: <p>For the sake of challenge, how can I replace this code with only one if statement?</p>
  <pre><code>unsigned int x, y;
  cin&gt;&gt;x;
  if((x&gt;=0)&amp;&amp;(x&lt;=1)) y = 1;
  else if (x&lt;=3) y = 2;
      else if(x&lt;=5) y = 3;
          else y = 6;
  </code></pre>