Simple interest calculation in javascript
In this article, we are going to learn how to calculate simple interest calculation in javascript. Simple interest is a method of calculating the interest on a loan or deposit where the interest is calculated only on the original principal amount.
The formula for calculating simple interest is:
si=p*t*r/100
Where,
p=Principal amount
t= Time/period
r= Rate of interest.
si=Simple interest.
Source Code:
Output:
Final Words:
I hope that now you have clear cut idea about how to calculate simple interest calculation in javascript. If you have any doubt please feel free to write suggestion in comment box.
You may also Read:
No comments:
Post a Comment