title: Reading input from stdin until empty line
body: <p>I want to parse input such as:</p>
  
  <pre><code>1 2 3\n4 5 6\n7 8 9\n\n
  </code></pre>
  
  <p>and for each row save each value in int ant print it to stdout until I get an empty line, so for this example I would get:</p>
  
  <pre><code>1 2 3
  1 2 3
  4 5 6
  4 5 6
  7 8 9
  7 8 9
  </code></pre>
  
  <p>I've tried something like</p>
  
  <pre><code>int n1, n2, n3;
  while(scanf ("%d %d %d\n", n1, n2, n3) != EOF) {
      printf("%d %d %d\n", n1, n2, n3);
      fflush(stdout);
  }
  </code></pre>
  
  <p>but it doesn't seem to work. Is there any simple way to do that?</p>