inspite getting satisfactory output my submission is denied by as Wrong answer…somebody help what is that iam not getting.
#include<stdio.h>
int main()
{
int x;float y;
scanf("%d %f",&x,&y);
if(x>0 && y>0)
{
if((x%5)==0 && y>x)
printf("%.2f\n",y-x-0.50);
else
printf("%.2f\n",y);
}
return 0;
}