title: Issues while printing float values
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt; 
  int main()
  {
     float i = 2.5;
     printf("%d\n%d\n%d",i,i,i);
  }
  </code></pre>
  
  <p>When I compile this using gcc and run it, I get this as the output:</p>
  
  <pre><code>0
  1074003968
  0
  </code></pre>
  
  <p>Why doesn't it print just</p>
  
  <pre><code>2
  2
  2
  </code></pre>