This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

16 lines
478 B
Python

savings = float(input("Enter the amount you save per month:"))
inRate = float(input("Enter the interest rate per year:"))
months = int(input("Enter the number of months:"))
monRate = (inRate/100)/12
print("\nMonth","\t","Amount in the account")
for i in range(1,months+1):
if i ==1:
savplus = savings*(1+monRate)
print (i, "\t", round(savplus,2))
else:
savplus = (savings + savplus) *(1+monRate)
print (i, "\t", round(savplus,2))