result of arithmetic operation like: 1/3 in C float variable : <p>I am writing simple program where I am doing operation like 1/3, 1/5 .
But while printing o/p it prints 0.00 .. </p>

<pre><code>int main()
{
 float res = 0.0;
 int no1 =1 ;
 int no2 = 3;

 res = (no1) / (no2) ;

 printf("Res:[%f] ",res);

 }
</code></pre>

<p>~      </p>

<p>ideally it should print 0.3 but it prints 0.0000.</p>
