#include <stdio.h>
int main()
{
    float a;
    int b,c,d;
    printf("enter the payment amounrt:");
    scanf("%f",&a);
    printf("enter balance amount:");
    scanf("%d",&b);
    printf("account is active or inactive:");
    scanf("%d",&c);
    d=a+b;
    if(c=0)
    {
        printf("the account is inactive:");
    }
    else
    {
        printf("the account is active\n");
        printf("the remainig balance %2f\n",d);
    }
}