title: cannot implicitly convert type 'float' to 'int'
body: <p>When I try to run the following code it gives an error which is " Cannot implicitly convert type 'float' to 'int' ".</p>
  
  <p>I have done a lot of searches, and sadly I wasn't able to find any help for such an error. </p>
  
  <pre><code>int sum1, cols, rows;
  
  float h, twoEnds, x;
  
  sum1 = (h - ((cols) * x) + twoEnds)) / (cols + 1);
  </code></pre>