<!DOCTYPE html>
<html>
<head>
<title>Unit 2 - Q9</title>
<script type="text/javascript">
var p=1000,r=5,n=2,si;
document.write("Principle Amount (p) = Rs. " + p + "<br>");
document.write("Rate of interest (r) = " + r + "% per year<br>");
document.write("Time Period (n) = " + n + " Years<br>");
document.write("Simple Interest = (p*r*n)/100)<br>");
si=(p*r*n)/100;
document.write("Thus, SI = (" + p + "*" + r + "*" + n + ")/100 = Rs." + si)
</script>
</head>
</html>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.