Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print((" "*10)+"WELCOME TO PRO INVESTMENT\n\n")
- inp1 = input("How much money do you want to invest ? : ")
- money = float(inp1.split(" ")[-1])
- curr = inp1.split(" ")[0]
- rate = float(input("What is the yearly interest rate (%) ? : "))
- print("")
- print("="*50)
- print()
- print((" "*20)+"INVESTMENT")
- print("="*50)
- print("\n\n")
- print(f'After 1 year : {curr} {round(money*((1+(rate/100))**1),2)}')
- print(f'After 10 year : {curr} {round(money*((1+(rate/100))**10),2)}')
- print(f'After 20 year : {curr} {round(money*((1+(rate/100))**20),2)}')
- print(f'After 30 year : {curr} {round(money*((1+(rate/100))**30),2)}')
- print()
- print("*"*50)
- print()
- print("It will take about : 5 years for your investment to double up!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement