title: Print j on every outside loop iteration in R
body: <p>For the following code: I can't figure out why <code>j</code> does not print on every outside loop iteration.</p>
  
  <pre><code>x = 0
  
  for (j in 1:15)
  {
  for (i in 1:100000)
  {
  x = x + 1
  }
  print(j)
  }
  </code></pre>
  
  <p>What R seems to be doing is running the the whole thing, and at the end print out all the <code>j</code>s, not one by one as when every loop iterates. </p>
  
  <p>It seems to be that <code>j</code> should be printing after every loop iteration, what am I missing here?</p>
  
  <p>Is there a way to make it such that <code>j</code> in printed on every outside loop iteration?</p>
  
  <p>Thank You</p>