ATM question of easy problem

#include<stdio.h>
int main(void)
{
int x;
float y;
//printf(“enter initial balance”);
scanf("%f",&y);
//printf(“enter balance to be transacted”);
scanf("%d",&x);
if(((x%5)==0)&(y>=(x+0.5)))
y=y-x-0.5;
printf("%.2f",y);
return 0;
}