title: What's the propper use of && operator in a do while loop?
body: <p>I could not understand why the program defines Heigth only for greater values then 9, I would be very pleased if someone can show me my mistake, thank you for your time.</p>
  
  <pre><code>#include &lt;cs50.h&gt;
  include &lt;stdio.h&gt;
  
  int Heigth;
  
  int main(void) { 
      do { 
          Heigth = get_int("A level value please ? ");    
      } while (9 &gt; Heigth &amp;&amp; Heigth &gt; 0); 
  
      printf("Heigth is %d", Heigth);
  } 
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre class="lang-none prettyprint-override"><code>$ ./mario
  A level value please ? 5
  A level value please ? 7
  A level value please ? 98
  Heigth is 98$ ^C
  </code></pre>