Compound Interest formula:
Formula to calculate compound interest annually is given by:
A = P(1 + R/100) t
Compound Interest = A – P
Where,
A is amount
P is principle amount
R is the rate and
T is the time span
Example:
Input : Principle (amount): 1200
Time: 2
Rate: 5.4
Output : Compound Interest = 1333.099243
Python3
# 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) # This code is contributed by Abhishek Agrawal. |
chevron_right
filter_none
Output:
Compound interest is 6288.946267774416
Please refer complete article on Program to find compound interest for more details!
Recommended Posts:
- Python Program for simple interest
- Python Program for Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!
- Python Program for Program to Print Matrix in Z form
- Python Program for Program to calculate area of a Tetrahedron
- Python Program for Efficient program to print all prime factors of a given number
- Python Program for Program to find area of a circle
- Python program to check if the list contains three consecutive common numbers in Python
- Python Program to print digit pattern
- Python program to convert time from 12 hour to 24 hour format
- Python Program for Selection Sort
- Python Program for Bubble Sort
- Python Program for Insertion Sort
- Python Program for Heap Sort
- Python Program for Counting Sort
- Python Program for Radix Sort
- Python Program for n-th Fibonacci number
- Python Program for Counting Sort
- Python Program for ShellSort
- Python Program for Longest Common Subsequence
- Python Program for Binary Search (Recursive and Iterative)
Improved By : shivikapriya


