print ("*** Application to calculate time to double amount ***")
#TTDA = 72 / Rate of Return
def doubleAmt_function(n1,n2):
return(n1/n2)
print("\n")
print ("The years taken to double the amount is:", doubleAmt_function(72,15))
------------------------------------------------------------------------------
print ("*** Application to calculate time to double amount ***")
#TTDA = 72 / Rate of Return
print("\n")
RRV = float(input("Please enter the rate of return %: "))
print("\n")
TTDA = 72 / RRV
print ("The years taken to double the amount is:", TTDA)
===============================================================
https://github.com/bornfreesoul/PythonLessons
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.