Skip to content

Commit 94acf2c

Browse files
Create Compound Interest.py
1 parent 57a1ca0 commit 94acf2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Compound Interest.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""Calculte Compound Interest Interest"""
2+
def ci(principle, rate, time):
3+
Amount = principle * (pow((1 + rate / 100), time))
4+
Amount - principle
5+
print("Compound Interest is",Amount - principle)
6+
p=float(input("Enter the Principle Amount : "))
7+
r=float(input("Enter the Rate of Interest : "))
8+
t=float(input("Enter the time in years : "))
9+
ci(p,r,t)

0 commit comments

Comments
 (0)