Skip to content

Commit 43f5839

Browse files
authored
Python3 program to find compound
1 parent 229f8d6 commit 43f5839

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Python3 program to find compound

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Python3 program to find compound
2+
# interest for given values.
3+
4+
def compound_interest(principle, rate, time):
5+
6+
# Calculates compound interest
7+
Amount = principle * (pow((1 + rate / 100), time))
8+
CI = Amount - principle
9+
print("Compound interest is", CI)
10+
11+
# Driver Code
12+
compound_interest(10000, 10.25, 5)

0 commit comments

Comments
 (0)