title: Calculation issue with decimal places in C
body: <p>I was trying to code a grayscale and have issues with the calculation. Can anyone explain why this returns 27.00000 instead of 27.66667?</p>
  <pre><code>#include &lt;math.h&gt;
  #include &lt;stdio.h&gt;
  
  int main(void)
  {
  
      float count = ((27 + 28 + 28) / 3);
      printf(&quot;%f\n&quot;, count);
  
  }
  </code></pre>