title: i can't fix error in c using float type for car fee program example
body: <p>I tried with this code but can't find way to resolve this problem.
  I tried to change float type to int, or chaing indent doesn't fix either. If anyone can provide solution, that would be help me out.
  my expectation is trying to get the right result for this code.</p>
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt;
  
  main()
  {
    float hour, fee;
    hour = 5;
    fee = 20;
    
    if (hour &gt; 4)
      fee = 20 + hour*30;
  
    printf (&quot;Hour = %.2f\n&quot;,hour);
    printf (&quot;Car Park Fee = %.2f&quot;,fee);
  }
  </code></pre>