Advertisement
biswasrohit20

inv

Apr 3rd, 2021
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 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. print("\n\n")
  12. print(f'After 1 year : {curr} {round(money*((1+(rate/100))**1),2)}')
  13. print(f'After 10 year : {curr} {round(money*((1+(rate/100))**10),2)}')
  14. print(f'After 20 year : {curr} {round(money*((1+(rate/100))**20),2)}')
  15. print(f'After 30 year : {curr} {round(money*((1+(rate/100))**30),2)}')
  16. print()
  17. print("*"*50)
  18. print()
  19. print("It will take about : 5 years for your investment to double up!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement