title: Warning this code has no effect
body: <p>The getchar(); line gives me the warning: this code has no effect.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int this_is_a_number;
  
      printf( "Please enter a number: " );
      scanf( "%d", &amp;this_is_a_number );
      printf( "You entered %d", this_is_a_number );
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>is there any solution?</p>