Computer Science, asked by shilpa6292, 4 months ago

python expressions
Write the following
P (1+r/n)nt​

Answers

Answered by krishar2004
0

Answer:

P = float(input("Enter Principal Amt: "))

R = float(input("Enter Rate: "))

t = float(input("Enter Time (in years): "))

n = float(input("Enter number of times it is compounded: "))

#calculation

SI = (P * R * t ) / 100

q = n * t

CI = ( P * ( 1 + (R / n ))) ** q

#printing results

print ("Simple Interest: ",SI)

print ("Compound Interest: ",CI)

Mark me as Brainliest

Similar questions