Advertisement
biswasrohit20

inv2

Apr 3rd, 2021
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. print((" "*10)+"WELCOME TO PRO INVESTMENT\n\n")
  2. inp1 = input("How much money do you want to invest ? : ")
  3. money = float(inp1.split(" ")[-1])
  4. curr = inp1.split(" ")[0]
  5. rate = float(input("What is the yearly interest rate (%) ? : "))
  6. print("")
  7. print("="*50)
  8. print()
  9. print((" "*20)+"INVESTMENT")
  10. print("="*50)
  11. amount1 = round(money*((1+(rate/100))**1),2)
  12. amount2 = round(money*((1+(rate/100))**10),2)
  13. amount3 = round(money*((1+(rate/100))**20),2)
  14. amount4 = round(money*((1+(rate/100))**30),2)
  15. print("\n\n")
  16. print(f'After 1 year : {curr} {amount1}')
  17. print(f'After 10 year : {curr} {amount2}')
  18. print(f'After 20 year : {curr} {amount3}')
  19. print(f'After 30 year : {curr} {amount4}')
  20. print()
  21. print("*"*50)
  22. print()
  23. print("It will take about : 5 years for your investment to double up!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement