ATM question

#include<stdio.h>
//#include<conio.h>
#include<math.h>
main()
{
float w,a;
scanf("%f%f",&w,&a);
if((fmod(w,5.00)==0)&&(w<=2000)&&(w>0)&&(a>=0))
{
if((w+0.50)==a)
printf(".2f",a-w-0.50); else if((w+0.50)<a) printf(".2f",a-w-0.50);
else if((w+0.50)>a)printf("%.2f",w);
}
//getch();
}

I am getting runtime error… What cud it b with the above code. Kindly help

Read FAQ, there are answers for all your questions :wink:

//