title: Issue in incrementing numbers in Do while loop
body: <p>I'm learning and tinkering with the C programming language. Unfortunately, While learning and playing with the do-while loop, I'm confused. I wrote and ran a program to increment a variable from 1 to 100 with condition i&lt;=100; the code ran successful, but when I changed the condition of the do-while loop to i==100, the output confuses me because only 1 is printed on the console. Please help.</p>
  <p>The code below gives the expected output.</p>
  <pre><code>#include&lt;stdio.h&gt;
  int main(){
      int i=1;
      do{
          printf(&quot;\n%d\n&quot;,i);
          ++i;
      } while(i&lt;=100);
  
  }
  </code></pre>
  <p>The code below gives output 1.</p>
  <pre><code>#include&lt;stdio.h&gt;
  int main(){
      int i=1;
      do{
          printf(&quot;\n%d\n&quot;,i);
          ++i;
      } while(i==100);
  
  }
  </code></pre>
  <p>Thank you.</p>