-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcalc.html
More file actions
45 lines (45 loc) · 1.5 KB
/
calc.html
File metadata and controls
45 lines (45 loc) · 1.5 KB
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
<html>
<head>
<style>
input {
width:100%;
padding:30;
font-size: 25.3333px;
}
</style>
<title>My first page</title>
</head>
<body><center>
<form name="cal">
<table>
<tr>
<td colspan="4"><input type="text" name="result"></td>
<tr>
<td><input type="button" value="+" onclick="cal.result.value += '+'"></td>
<td><input type="button" value="0" onclick="cal.result.value += '0'"></td>
<td><input type="button" value="1" onclick="cal.result.value += '1'"></td>
<td><input type="button" value="2" align="middle" onclick="cal.result.value += '2'"></td>
</tr>
<tr>
<td><input type="button" value="-" onclick="cal.result.value += '-'"></td>
<td><input type="button" value="3" onclick="cal.result.value += '3'"></td>
<td><input type="button" value="4" onclick="cal.result.value += '4'"></td>
<td><input type="button" value="5" onclick="cal.result.value += '5'"></td>
</tr>
<tr>
<td><input type="button" value="*" onclick="cal.result.value += '*'"></td>
<td><input type="button" value="6" onclick="cal.result.value += '6'"></td>
<td><input type="button" value="7" onclick="cal.result.value += '7'"></td>
<td><input type="button" value="8" onclick="cal.result.value += '8'"></td>
</tr>
<tr>
<td><input type="button" value="/" onclick="cal.result.value += '/'"></td>
<td><input type="button" value="9" onclick="cal.result.value += '9'"></td>
<td><input type="reset" value="C"></td>
<td><input type="button" value="=" onclick="cal.result.value=eval(cal.result.value)" ></td>
</tr>
<p>Gururaj is chituya</p>
</table>
</form>
</body></center>
</html>