title: C programming printf, scanf
body: <p>Hi i have written this code, but the output gets like :</p>
  
  <blockquote>
    <p>How many Miles have u traveled?: (number of times that u display)<br>
    How many gallons of gasoline have u consumed?: </p>
  </blockquote>
  
  <p>and then it just skips the scanningf and    moves on to the next spot, </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;float.h&gt;
  
  int main ()
  {
  
      float mile;
      float gallon;
  
      printf("How many Miles have u traveled?: ");
      scanf("%.1f",&amp;mile);
      printf("How many gallons of gasoline have u consumed?: ");
      scanf("%.1f",&amp;gallon);
  
  } 
  </code></pre>