Advertisement
veronikaaa86

03. Deposit Calculator

Sep 11th, 2022
1,117
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 2 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 + (per_month * months)
  8.  
  9. print(total_sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement