How to compare a variable against two values at the same time?
<p>I need to improve this statement by either correcting it or making it shorter</p>

<pre><code>if (0 &lt;= age &lt;= 100) // age is between 0 and 100)
</code></pre>

<p>I am totally confused about spending 20 minutes on the question. It seems really simple but the only revision I could think of is</p>

<pre><code>if (0 &lt;= age &amp;&amp; age &lt;= 100)
</code></pre>

<p>and that doesn't seem right. Am I just missing something obvious? Can someone help me please?</p>

<p>Thanks</p>
