Python Program for compound interest
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
Output:
Compound interest is 6288.946267774416
No comments:
Post a Comment
Your feedback is highly appreciated and will help us to improve our content.