Deposit = float(input()) n = int(input()) i = 0 while i <=n: Withdraw = int(input()) if Withdraw % 5 == 0 and (Withdraw+0.50)<= Deposit: Deposit = Deposit - (Withdraw + 0.50) print("%.2f"%Deposit) elif Withdraw % 5 != 0 and (Withdraw+0.50) <= Deposit: print("%.2f"%Deposit) elif Withdraw > Deposit: print("%.2f"%Deposit)
i
n
while
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)