#include<stdio.h>

#include<conio.h>

int main()

{

double y;

int x;

scanf("%d %f",&x,&y);

if(x>0 && y>0)

{

if((x<2000) && (y<2000))

{

if(x%5==0)

{

printf("%f",y-x-0.5);

}

}

}

getch();

return 0;

}

you’ve to put one more condition in the if loop…

y-x<0.5