We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104390e commit 761b9b5Copy full SHA for 761b9b5
index.html
@@ -0,0 +1,16 @@
1
+<html>
2
+ <head>
3
+ <script src="script.js"></script>
4
+ <link rel="stylesheet" href="style.css">
5
+ </head>
6
+ <body>
7
+ <h1>Simple Interest Calculator</h1>
8
+
9
+ Amount <input type="number" id="principal"> <br/>
10
+ Rate <input type="number" id="rate"> <br/>
11
+ No. of Years <input type="number" id="years"> <br/>
12
+ Interest : <span id="result"></span><br>
13
14
+ <button onclick="compute()">Compute</button>
15
+ </body>
16
+</html>
script.js
@@ -0,0 +1,6 @@
+function compute()
+{
+ p = document.getElementById("principal").value;
+}
style.css
@@ -0,0 +1,4 @@
+body {background-color:tan;}
+h1{color:green;}
0 commit comments