Simple Interest Calculator using Javascript

Create a HTML Document with JavaScript code that has three Textboxes and a button. The details should be accepted using textboxes are principal, rate of interest, and duration in years. When user clicks the OK Button a message box appears showing the simple interest of principal amount.

आज के इस लेख में हम O Level Practial Question Important Questions with Solution Share करने वाले है और यह o level web design practical के द्रष्टिकोण से बहुत महत्वपूर्ण है |


<!DOCTYPE html>
	<title> Simple Interest Calculator in Javascript</title>
<script >
	function m2r5(){
		var pr= document.getElementById('p').value;
		var rate= document.getElementById('r').value;
		var time= document.getElementById('t').value;
		var res=document.getElementById('result');
		result.innerHTML="Simple Interset is " +(pr*rate*time/100);
		Principal:<input type="number" id="p"><br><br>
		Rate:     <input type="number" id="r"><br><br>
		Time:     <input type="number" id="t"><br><br>
		<input type="button" name="OK" onclick="m2r5();" value="ok">
	<h1 id="result" style="color: green;"></h1>

Video Solution: Click Here

1 thought on “Simple Interest Calculator using Javascript”

Leave a Comment