title: Having trouble understanding the logic of this infinite loop
body: <p>What makes this an infinite loop? Shouldn't <code>n</code> reach 5 and terminate the loop?   </p>
  
  <pre><code>int main()
  {
  
      int n = 1;
      while (n &lt;= 5)
  
      cout &lt;&lt; n ;
      n++;
  
  }
  </code></pre>