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;
}