Skip to content

Commit a7b731d

Browse files
Merge pull request seeditsolution#234 from Vikas09718/patch-3
Python3 program to find compound
2 parents ac8d94c + 43f5839 commit a7b731d

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)