Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Python3 program to find compound
  • Loading branch information
Vikas09718 authored Oct 2, 2020
commit 43f5839c2bc1916722d16f0e25c5f026b6e3c7aa
12 changes: 12 additions & 0 deletions Python3 program to find compound
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python3 program to find compound
# interest for given values.

def compound_interest(principle, rate, time):

# Calculates compound interest
Amount = principle * (pow((1 + rate / 100), time))
CI = Amount - principle
print("Compound interest is", CI)

# Driver Code
compound_interest(10000, 10.25, 5)