Here is my code for the atm question. I cant figure out the problem .Please help.
#include<stdio.h>
int main()
{
int with;
float abl;
scanf("%d %f",&with,&abl);
if((with>0)&&(with<=2000)&&(abl>=0)&&(abl<=2000))
{
if((with<=(abl+0.5))&&(with%5==0))
abl=abl-(with+0.5);
}
printf("%0.2f",abl);
return 0;
}