Contest Code:PRACTICE Problem Code:HS08TEST

/*I am having problem in this practice question for which I had submitted couple of times and the Ide says wrong answer Please help me with this as I had it several times and I had pasted my code inside it. */

#include
#include<stdio.h>
using namespace std;
int main()
{
int withdrawl;
float account_balance,new_balance;
scanf("%d%f",&withdrawl,&account_balance); // from the user
if(withdrawl<(0.50+account_balance)) //if acc_bal is sufficient or not
{
if(withdrawl%5==0) //if it is mulitple of 5 or not
{
new_balance=account_balance-(0.50+withdrawl); //new account balance

        } 
       else
        {
           new_balance=account_balance; //else make new_bal as exisiting acc_bal as it's invalid
        }
        
  } 
  else
  {
      new_balance=account_balance; //as it is invalid amount thus transaction can't be comleted and thus made new_balance =account_balance
  }
  printf("%0.2f",new_balance); //displayed the resultant amount.
return 0;

}
// I have used c++ 14 gcc 6.3 as my compiler.

Thank you guys for viewing my post.I had found the reason why my answer was wrong.
// if(withdrawl<(0.50+account_balance)) //if acc_bal is sufficient or not
as you can see in this line that there is a logical error.
as total current balance has to be (account_balance-0.50) as we have to make sure that our available balance is greater than the amount which has to be withdrawn.that’s it.
so the statement would be like:
// if(withdrawl<(account_balance-0.50))