title: Clion scanf duplicating previous line
body: <p>I'm new to C and I'm following through some tutorials, but I keep getting an error when running code in CLion.</p>
  
  <p>Whenever I use <code>scanf</code> it always seems to duplicate the previous line in the console.</p>
  
  <p>Here's what it's outputting:</p>
  
  <pre><code>Please enter your first number:5
  Please enter your first number: 5
  Please enter your second number:6
  Please enter your second number: 6
  5 &lt; 6
  Process finished with exit code 0
  </code></pre>
  
  <p>Here's what I think it should output:</p>
  
  <pre><code>Please enter your first number:5
  Please enter your second number:6
  5 &lt; 6
  Process finished with exit code 0
  </code></pre>
  
  <p>And of course, here's my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int no1;
      int no2;
  
      printf("Please enter your first number: ");
      scanf(" %d", &amp;no1);
  
      printf("Please enter your second number: ");
      scanf(" %d", &amp;no2);
  
      if(no1 &lt; no2){
          printf("%d &lt; %d", no1, no2);
      } else if (no1 == no2) {
          printf("Both numbers are %d", no1);
      } else {
          printf("%d &gt; %d", no1, no2);
      }
  
      return 0;
  }
  </code></pre>
  
  <p>I'm also using MinGW 3.21, CMake 3.5.1</p>
  
  <p><strong>Edit:</strong>
  I just ran the code on the normal command line and found this isn't a problem there. It appears to just be CLion's console.</p>