Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rate = .1
- deposit = float(input('how much money would you like to deposit?'))
- total = deposit*(1+rate)
- interest = deposit * rate
- #years = ['one','two','three']
- for i in range(80):
- print("after", i,"years, you earned %.2f interest" % interest,
- "for a total of %.2f" % total)
- total = total * (1 + rate)
- interest = total * rate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement