Advertisement
veronikaaa86

03. Deposit Calculator

Oct 30th, 2022
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. deposit_amount = float(input())
  2. months = int(input())
  3. annual_rate = float(input())
  4.  
  5. per_year = deposit_amount * (annual_rate / 100)
  6. per_month = per_year / 12
  7. total_sum = deposit_amount + (months * per_month)
  8.  
  9. print(total_sum)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement