Skip to content

Commit 761b9b5

Browse files
Add files via upload
1 parent 104390e commit 761b9b5

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function compute()
2+
{
3+
p = document.getElementById("principal").value;
4+
5+
}
6+

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {background-color:tan;}
2+
h1{color:green;}
3+
4+

0 commit comments

Comments
 (0)