Mini-Project

Simple way to Calculate

function calculate(){ var p=0; var n=0; var r=0; var SI=0; p=parseInt(document.getElementById(“principal”).value); n=parseInt(document.getElementById(“year”).value); r=parseInt(document.getElementById(“rate”).value); SI=(p*n*r)/100; document.getElementById(“res”).innerHTML=SI; }

Simple Interset calculator

Principal
Year
Rate of Interset
Calculate

$

Leave a comment

Design a site like this with WordPress.com
Get started