title: Simple C Programing Round up/down to nearest 0.5
body: <p>I need to create simple C programming which look like this</p>
  
  <pre><code>1.1 and 1.2 to 1.0
  1.3 and 1.4 to 1.5
  1.6 and 1.7 to 1.5
  1.8 and 1.9 to 2.0
  </code></pre>
  
  <p>This is my example</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
   int main()
  {
         float i=1.3, j=1.7;
         printf("round of  %f is  %f\n", i, round(i));
         printf("round of  %f is  %f\n", j, round(j));
         return 0;
  }
  </code></pre>
  
  <p>The answer for <code>i</code> become <code>1.0</code> but i am expecting <code>1.5</code> and <code>j</code> is <code>2.0</code> but my expectation is <code>1.5</code>
  I need a few line to make it happen right?</p>