write python program to find out compound interest and simple interest
Answers
Answer:
Hi..
Explanation:
Hope it helps you..
choice = "Yes"
while choice == "Yes":
print("Simple Interest","****************", sep = "\n")
p = float(input("Enter the Principal amount: "))
r = float(input("Enter the Rate of Interest: "))
t = float(input("Enter the Time period: "))
si = (p*r*t)/100
print(si, "is your Simple Interest.")
print()
print("Compound Interest", "*******************", sep = "\n")
p = float(input("Enter the Principal amount: "))
r = float(input("Enter the Rate of Interest: "))
t = float(input("Enter the Time period: "))
n = float(input("Enter the number of times the interest will be compounded: "))
ci = p*(1 + r/n)**(n*t)
print(ci, "is your Compount Interest.")
print()
choice = input(("Would you like to go again? [Yes/No]"))
print()
print("Thank you!")