CodeChef is showing my answer is wrong…
But code is perfect according to me…
Help me…
Here is my C code…
#include<stdio.h>
int main()
{int x;
float y;
scanf(“%d%f”,&x,&y);
if(x%5==0 && y>(float)x)
printf(“%.2f”,y-(float)x-.5);
else if(x%5!=0 && y>(float)x)
printf(“%.2f”,y);
else
printf(“%.2f”,y);
return 0;
}