title: having trouble with a "\n" and scanf
body: <p>Here is the code </p>
  
  <pre><code>       printf("\n");
         printf("Enter a integer vaule:");
         scanf("%d" , &amp;num3);
         printf("You entered: %015d", num3);
  
  
         printf("Enter a float value:");
         scanf("%f", &amp;deci3);
         printf("You entered: %15.2f", deci3);
         printf("\n");
  </code></pre>
  
  <p>the output is </p>
  
  <pre><code>       Enter a integer vaule:4.4
         You entered: 000000000000004
         Enter a float value:You entered:            0.40
  </code></pre>
  
  <p>The problem is this code is not stopping at </p>
  
  <pre><code>       printf("Enter a float value:");
  </code></pre>
  
  <p>and this scanf </p>
  
  <pre><code>      scanf("%f", &amp;deci3);
  </code></pre>
  
  <p>seems to be getting its value from the previous scanf</p>