title: C printf format for float
body: <p>I tried the following code</p>
  
  <pre><code>int main()
  {
      float a = 1.0, b = 25.16;
      printf("%2.1f\n", a);
      printf("%2.1f\n", b);
  }
  </code></pre>
  
  <p>I expect the result as:</p>
  
  <pre><code> 1.0
  25.2
  </code></pre>
  
  <p>instead it shows:</p>
  
  <pre><code>1.0
  25.2
  </code></pre>
  
  <p>Why doesn't it line up? </p>