float total, remain;
scanf("%d%f", &draw, &total);
if (draw % 5 == 0 && (draw > 0 && draw < total))
remain = total - (draw + 0.50);
Try a case when you have to withdraw amount x and the actual amount in bank is less than (x+0.5) but greater than (x).
What is the result ???
Assume x is divisible by 5…
Okk… you didn’t got my point…
To be more precise i was talking about such input,
withdraw amount = x
x > actual amount > (x + processing fees)