Javascript program to enter the P, T, R, and calculate it's Simple Interest
Javascript program to enter the P, T, R, and calculate it's Simple Interest. There are you will learn how to find the Simple Interest through P, T, R in javascript language.
Formula:
SI = (P * T * R) / 100
Where:
P = principal amount
T = time
R = rate
SI = simple interest
Let us understand this example through javascript program:
/* Javascript program to enter the P, T, R, and calculate it's Simple Interest */
<script type="text/javascript">
var p, t, r, SI;
// p = principal
// t = time
// r = rate
// SI = simple interest
// Calculate simple interest
p = 15;
t = 12;
r = 12;
SI = (p * t * r) / 100;
// Output
document.write("Simple Interest = " + SI);
</script>
Output Screen:
Simple Interest = 21.6