title: Output of a simple for loop?
body: <p>I'm VERY new to c programming. The output of the following program is 
  One Two Two One but I don't know why. Can anyone explain this to me?</p>
  
  <pre><code>  #include &lt;stdio.h&gt;
    {
    int i, j, k = 100;
    for(i=0;i&lt;2;i++)
    {
       printf("One");
       for(j=0;k;j++)
          {
             printf("Two");
             k -=50;
          }
       }
       return 0;
    }
  </code></pre>