My c output always 0 : <p>When i run this c program to calculate BMI, the output i get is always 0
can i know whats the problem? i am able to get the value of w and h but it seems bmi keeps returning 0 as the result</p>

<pre><code>#include &lt;stdio.h&gt;

int main()
{
    float w, h, bmi;
    printf("please enter your weight in kg");
    scanf("%d", &amp;w);
    printf("please enter your height in m");
    scanf("%d", &amp;h);

    bmi = (w/(h*h));
    printf("Your BMI is %d\n", bmi);
    return 0;

}
</code></pre>
