Anjeev Singh Academy

Python program to calculate Compound Interest and Amount

Python program to calculate Compound Interest and Amount

#################################################
# Language : Python
# Topic: Calculate Compound Interest and amount
# amount = p * (1 + r/100) ** t; ci = amount - p
# Author : Anjeev Singh
#################################################

p = float(input("Enter Principal Amount Rs.: "))
r = float(input("Enter Rate of Interest % : "))
t = float(input("Enter time (Years) : "))

amount = p * (1 + r/100) ** t
ci = amount - p

print("\n Compound Interest : ", round(ci,2))

print("\n Amount : ", round(amount,2))

Output:

Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top