#include<stdio.h>
int main()
{
float acc_bal;
int withdrawl_amt;
printf ("Enter any withdrawl amount \n");
scanf ("%d",&withdrawl_amt);
printf ("Enter your bank balance \n");
scanf ("%f",&acc_bal);
if( acc_bal>=withdrawl_amt+0.50 && withdrawl_amt%5==0)
{
acc_bal=acc_bal-withdrawl_amt-0.50;
printf ("%.2f",acc_bal);
}
else
printf ("%.2f",acc_bal);
return 0;
}
This program is running on codechef IDE but its showing wrong solution when submitted