Why is my C program skipping over if statements? : <p>I am a new coder and have no idea what I am doing please help!</p>

<p>The code is reading and taking inputs just fine until it reaches the scanf(" %c", &amp;i);then it skips to the Amount print seemingly ignoring my if statements.Is there somthing wrong with my use of scanF?</p>

<p>Here is the code:</p>

<pre><code>#include &lt;stdio.h&gt;
int main(){
printf("BANK ACCOUNT PROGRAM!\n--------------------\n");
char W,F,A,i,D; 
int t=1;
double b,d;

while (t=1){
    printf("Enter the old balance:\n");
    scanf(" %lf", &amp;b);
    printf(" %lf", b);
    if(b&gt;=0)
        {
    printf("Enter the transactions now!\n Enter an F for the transaction type when you are finished.\n");

    printf("Transaction Type (D=deposit, W=withdrawal, F=finished):\n");
    scanf(" %c", &amp;i);
    if(i=F){
        printf("Your ending balance is");
        printf(" %lf", b);
        printf("\n Program is ending!");

        return 0;
        }
    if(i=W){
        printf("Amount:");
        scanf(" %f", &amp;d);
        b= b-d;
        printf(" %f",b);}
    }
    if(b&lt;0);
        {
            printf("The balance must be maintained above zero!\n");

    }


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