title: multiple 'if...else...' statement in one line in c++
body: <p>How to do if i want to get this code into one line?</p>
  
  <pre><code>if (count &gt;= 0 &amp;&amp; count &lt;= 199) {
          return 1;
      } else if (count &gt;= 200 &amp;&amp; count &lt;= 399) {
          return 2;
      } else if (count &gt;= 400 &amp;&amp; count &lt;= 599) {
          return 3;
      } else if (count &gt;= 600 &amp;&amp; count &lt;= 799) {
          return 4;
      } else {
          return 5;
      }
  </code></pre>
  
  <p>I'm just figuring is there any shortcut for this few line of codes.</p>