Can somebody tell me why i am getting runtime error for this C program ?
#include<stdio.h>
#include<conio.h>
main()
{
float x;
int y;
scanf("%d%f",&y,&x);
if(y%5==0&&(x>(y+0.5)))
printf("%0.2f",x-y-0.5);
else
printf("%0.2f", x);
getch();
}