ATM Problem Beginner level

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)


	printf ("%.2f",acc_bal);


	printf ("%.2f",acc_bal);

return 0;


This program is running on codechef IDE but its showing wrong solution when submitted

You are getting WA just because of you printed “Enter any withdrawl amount \n” and “Enter your bank balance \n”.

You only have to print expected output nothing else.