title: do ... while loop isn't working in main
body: <p>I wrote a simple program with a function that calculates the area of a circle. 
  The program also asks to the user if he wants to calculate it again and if the input is <code>'N'</code>, the program is supposed to stop. </p>
  
  <p>Here's the narrowed down test case:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  
  int main(void)
  {
      float r;
      char f;  
      do {    
          printf("Type the radius\n");
          scanf("%f", &amp;r);
          printf("Repeat? [Press N for stop]");
          scanf("%c", &amp;f);
      } while(f != 'N');
      getch();
      return 0;
  }
  </code></pre>
  
  <p>but the loop never stops as it was intended to.</p>
  
  <p>Do you have any suggestion?</p>