title: print multiple lines by getchar and putchar
body: <p>Im a beginner learning The C Programming language and using Microsoft visual C++ to write and test code.</p>
  
  <p>Below program in C from text(section 1.5.1) copy its input to its output through putchar() and getchar():</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(void)
  {   int c;
      while ((c = getchar()) != EOF)
           putchar(c);
      return 0;}
  </code></pre>
  
  <p>The program print characters entered by keyboard every time pressing ENTER.As a result,I can only enter one line before printing. I can't find a way to enter multi-line text by keyboard before printing.</p>
  
  <p>Is there any way and how to let this program input and output multi-line text from keyboard?</p>
  
  <p>Sorry if this is a basic and ignorant question.</p>
  
  <p>Appreciate your attention and thanks in advance.</p>