Spocoman

03. Deposit Calculator

Dec 1st, 2021 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. Първо решение:
  2.  
  3. money = float(input())
  4. month = float(input())
  5. percent = float(input())
  6. monthPercent = money * percent / 1200
  7. total = money + month * monthPercent
  8. print(total)
  9.  
  10.  
  11. Второ решение:
  12.  
  13. money = float(input())
  14. month = int(input())
  15. percent = float(input())
  16. print(money + month * money * percent / 1200)
  17.  
  18.  
  19. Тарикатско решение:)
  20.  
  21. money = float(input())
  22. print(money + int(input()) * money * float(input()) / 1200)
  23.  
Add Comment
Please, Sign In to add comment