-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculation.html
46 lines (43 loc) · 1.96 KB
/
calculation.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
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<form>
<input type="text" name="display" id="screen">
<div>
<input type="button" value="c" class="button" onclick="clearscreen()">
</div>
<div >
<input type="button" value="7" class="button" onclick="btnclick(value)">
<input type="button" value="8" class="button" onclick="btnclick(value)">
<input type="button" value="9" class="button" onclick="btnclick(value)">
<input type="button" value="+" class="button" onclick="btnclick(value)">
</div>
<div>
<input type="button" value="4" class="button" onclick="btnclick(value)">
<input type="button" value="5" class="button" onclick="btnclick(value)">
<input type="button" value="6" class="button" onclick="btnclick(value)">
<input type="button" value="*" class="button" onclick="btnclick(value)">
</div>
<div>
<input type="button" value="1" class="button" onclick="btnclick(value)">
<input type="button" value="2" class="button" onclick="btnclick(value)">
<input type="button" value="3" class="button" onclick="btnclick(value)">
<input type="button" value="-" class="button" onclick="btnclick(value)">
</div>
<div>
<input type="button" value="." class="button" onclick="btnclick(value)">
<input type="button" value="0" class="button" onclick="btnclick(value)">
<input type="button" value="/" class="button" onclick="btnclick(value)">
<input type="button" value="=" class="button" onclick="fnresult()">
</div>
</form>
</div>
<script src="calc.js"></script>
</body>
</html>