ShriRam Changed status to publish August 17, 2023
p = int(input(“Enter the Principal Amount “))
r = int(input(“Enter the Rate intrest per annum “))
t = int(input(“Enter the time in years “))
n = int(input(“Enter the number times CP is applied per time period “))
a = p*(1 + r/n)**n*t
print (a)
or
amt=int(input(“Enter The Amount= “))
rate=float(input(“Enter The Rate= “))
time=int(input(“Enter The Time= “))
ci = amt * (pow((1 + rate / 100), time))
it = ci-amt
print(“Compound Interest = “,ci,”Rs.”)
print(“Only Interest Pay = “,it,”Rs.”)
ShriRam Changed status to publish August 17, 2023