Advertisement
veronikaaa86

03. Deposit Calculator

May 8th, 2022
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. deposit_amount = float(input())
  2. months = int(input())
  3. annual_rate = float(input())
  4.  
  5. #сума = депозирана сума + срок на депозита * ((депозирана сума * годишен лихвен процент ) / 12)
  6.  
  7. per_year = deposit_amount * (annual_rate / 100)
  8. per_month = per_year / 12
  9. total_sum = deposit_amount + (per_month * months)
  10.  
  11. print(total_sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement