title: How to print lines in C terminal after u have passed the line
body: <p>I know based on the header, my question doesn't make much sense but hopefully the example might.</p>
  <p>ex:</p>
  <pre><code>printf(&quot;hello world\n\n\n&quot;);
  printf(&quot;hello again&quot;);
  printf(&quot;bye now&quot;);
  printf(&quot;this should print on line 2&quot;);
  printf(&quot;this should print on line 3&quot;);
  printf(&quot;this should print on line 4&quot;);
  
  expected output
  1. hello world
  2. this should print on line 2
  3. this should print on line 3
  4. this should print on line 4
  5. hello again
  6. bye now
  </code></pre>
  <p>My goal is to first print out lines 1,5, and 6. And then print out lines 2-4(inclusive), with 1 second in between. I know you can print out the lines with 1 second in between using sleep. But I am not sure how to print lines 2 - 4 after printing out lines 5, and 6.</p>