While attempting the ATM problem ( HS08TEST) my code seems to run fine however it doesnt pass all of the cases? Is there a way to see which cases it didnt pass so I know what to fix? if not can someone help me?
#include <stdio.h>
int main()
{
int x;
float y;
scanf("%i%f", &x, &y);
if (x % 5 == 0 && x < y)
{
y -= (float)x;
y -= 0.50;
printf("%.2f", y);
}
else if (x % 5 != 0 || x > y)
printf("%.2f", y);
return 0;
}