title: C code hangs during operation
body: <p>I'm just starting to learn the C programming language.  I've written this simple piece of code that converts the USD to Euros.  Only problem is that once the input of the USD is entered, the program just hangs.  I'm using a while loop to ask the user whether or not they want to redo the operation, so my guess is that the syntax of the code is causing an eternal loop, but I'm not for sure.  </p>
  
  <p>Here's my code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #define conv 0.787033       //conversion factor of USD to Euro found www.ex.com//
  
  int main(void)
  
  {
      float USD, EURO;
      char cont = 'y';
  
      while (cont == 'Y' || cont == 'y')
  
      {
          printf("Please enter the amount of United States ");
          printf("Dollars you wish to convert to Euros\n");
          scanf("%f\n", &amp;USD);
  
          EURO = USD * conv;
  
          printf("%.2f dollars is %.2f Euros\n", USD, EURO);
          printf("Do you wish to convert another dollar amount (Y/N)?\n");
          scanf("%c\n", &amp;cont);
      }
  
      return(0);
  }
  </code></pre>