-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (39 loc) · 1.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<script src = "addingmachine.js"></script>
<link href = "addingmachine.css" rel = "stylesheet">
</head>
<body>
<center>
<!-- title -->
<h1>Adding Machine</h1>
<table>
<tr>
<!-- first row buttons: 1, 2, and 3 -->
<td><input type = "button" value = "1" onclick = "add(1)"></td>
<td><input type = "button" value = "2" onclick = "add(2)"></td>
<td><input type = "button" value = "3" onclick = "add(3)"></td>
</tr>
<tr>
<!-- second row buttons: 4, 5, and 6 -->
<td><input type = "button" value = "4" onclick = "add(4)"></td>
<td><input type = "button" value = "5" onclick = "add(5)"></td>
<td><input type = "button" value = "6" onclick = "add(6)"></td>
</tr>
<tr>
<!-- third row buttons: 7, 8, and 9 -->
<td><input type = "button" value = "7" onclick = "add(7)"></td>
<td><input type = "button" value = "8" onclick = "add(8)"></td>
<td><input type = "button" value = "9" onclick = "add(9)"></td>
</tr>
</table>
<!-- clear button -->
<br>
<input type = "button" class= "clearbutton" value = "CLEAR" onclick = "clearit()">
<!-- output tells the number count and sum -->
<p id = "count"></p>
<p id = "sum"></p>
</center>
<body>
</html>