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

11 lines
371 B
Python

money = float(input("Enter the amount you save per month: "))
interest = float(input("Enter the interest rate per year: "))
month = int(input("Enter the number of months: "))
monthlyinterest = (interest/100)/12
i = 0
print("Month Amount in the account")
while i < month:
i += 1
total = (money + total)*(1 + monthlyinterest)
print(i, " ", round(total, 2))