C - double result returning the value of 0
<pre><code>#include &lt;stdio.h&gt;

int main(int argc, const char * argv[]) {

    int a = 10;
    int b = 20;
    double result = a / b;
    printf("%d divided by %d makes %f\n", a, b, result);

    return 0;
}
</code></pre>

<p>Expecting that the <code>%f</code> would return 0.500000, I ran the code and it turned out to be 0.000000.</p>

<p>Is there a reason that the <code>result</code> variable is returning a zero value?</p>