Infinite loop in C, codeblock : <p>Here is my code. </p>

<pre><code>#include&lt;stdio.h&gt;
main()
{
    float H,U,D,F;
    int x=0,i=0;
    scanf("%f %f %f %f",&amp;H,&amp;U,&amp;D,&amp;F);
    while(H&gt;x){
        x=x+U-D;
        U=U-(F/100*U);
        i++;
        printf("%d\t%d\t%2lf\t%2lf\t%2lf\n",i,x,U,D,F);
    }
    printf("%d",i);
}
</code></pre>

<p>It has fallen in an infinite loop. What's the problem here?</p>
