Computer Science, asked by manandhall480, 10 months ago

write python program to find out compound interest and simple interest

Answers

Answered by Anonymous
4

Answer:

Hi..

Explanation:

Hope it helps you..

Attachments:
Answered by Equestriadash
11

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!")


Equestriadash: Thanks for the brainliest! ♥
Similar questions