#include <stdio.h>
#include <stdlib.h>
int main() {
int WDAMT;
float BAL;
scanf("%d",&WDAMT);
scanf("%f",&BAL);
if(WDAMT%5 ==0 && (BAL-WDAMT) >= 0.5){
printf("%.2f\n",BAL-WDAMT-0.5);
}else
printf("%.2f\n", BAL);
}
Can any one suggest why the run time error is occuring