title: All output at last-C++ compiler
body: <p>This question might sound stupid but I really want to know that How do I get all the output at last after inputting all the input.Example,For <strong>input</strong> </p>
  
  <pre><code>  3
    14 
    7
    6
  </code></pre>
  
  <p><strong>Output</strong> suppose will be</p>
  
  <pre><code>  0
    0
    1
    0
  </code></pre>
  
  <p>But compiler is giving output something like</p>
  
  <pre><code> 3
   0 14
   0 7
   1 6
   0
  </code></pre>
  
  <p>Which doesn't look good,so I want to get output like the one we get in <strong>IDEONE</strong>(i.e all at the last).Is this possible ?IF yes,than please let me know</p>