





CodePudding user response:
The scanf (" % d ", & amp; Money); % d is wrong, and d are integers, but money is a doubleRate=0.025 and the total=* * *, order against the statement, should the rate assignment first and then you calculate
Finally the printf statements, % 1 f change the number bigger,