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)
- amount1 = round(money*((1+(rate/100))**1),2)
- amount2 = round(money*((1+(rate/100))**10),2)
- amount3 = round(money*((1+(rate/100))**20),2)
- amount4 = round(money*((1+(rate/100))**30),2)
- print("\n\n")
- print(f'After 1 year : {curr} {amount1}')
- print(f'After 10 year : {curr} {amount2}')
- print(f'After 20 year : {curr} {amount3}')
- print(f'After 30 year : {curr} {amount4}')
- 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