HS08TEST: getting wrong answer

Unable to find bug in ATM problem, infact its working in my compiler dont know why showing wrong answer…
Kindly Help…I’ve provided my code below
Thank You

#include<stdio.h>
int main()
{	int x=0;
	float y=0;
	scanf("%d %f",&x,&y);
	if(x<y && x%5==0)
		printf("%0.2f",(y-x-0.5));
	else
		printf("%0.2f",y);
	return 0;
}

Bank charges 0.5 amount for each transaction. hence, if x+0.5 is less than or equal to y then transaction is possible. make sure to take x as float as well.

Thank You @sagar_sam