Why my ATM code is wrong?

#include<stdio.h>
int main()
{
float bal,output;
int input;
scanf("%d %f",&input,&bal);

	if(input>=0 && input<=bal+0.5 && input<=bal)
	{
		if(input%5==0)
		{
			output=bal-input-0.5;
			printf("\n%.2f\n",output);
		}else
            printf("%.2f",bal);
	}
}

it should be input+0.5<=bal
in your test condition

input<=bal+0.5 

I think the +0.5 should be with input. Meaning, it should be like “Balance<=Amount to withdraw +0.5”

time to close the question as the issue has been resolved. @vijju123