title: printf not print on the console in eclipse?
body: <pre><code>#include&lt;stdio.h&gt;
  
  int main() {
      int n, s, i;
      do {
          printf("n= "); // here is the problem ?
          scanf("%d", &amp;n);
      } while (n&lt;100 || n &lt;= 0);
      s = 0;
      i = 0;
      while (i &lt;= n) {
          i = i + 2;
          s = s + i;
      }
      printf("s=%d", s);
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>I ran it in eclipse c/c++ and it not print "n=" first. But when I run it in another IDE like DEV-C++ or VS 2017, it run well. When add this line after printf and I ran like I expected. </p>
  
  <pre><code>fflush(stdout);
  </code></pre>
  
  <p>What is the problem here ? </p>