title: How to get newline character from scanf even if it's the only input
body: <p>I'm doing homework that asks me to read an integer <code>n</code> representing the size of a loop and then read a line of characters <code>n</code> times and print it right after the user's input. So I used <code>scanf</code> and then I print it with <code>printf</code>. The problem is that if the user's input is only a newline character, it should print another <code>\n</code>, but <code>scanf</code> seems to ignore the input when it's a single <code>\n</code>. </p>
  
  <p>Is there any way to make this assignment with <code>scanf</code> or should I try something else?</p>
  
  <pre><code>int i;
  scanf("%d", &amp;i);
  for(int ct=0; ct&lt;i; ct++)
  {
      char buff[28];
      scanf("%s", buff); // if I just press enter here
      prtinf("%s\n", buff); // then I must get \n\n here
  }
  </code></pre>