-
Notifications
You must be signed in to change notification settings - Fork 3
/
A Buggy Calculator.html
35 lines (34 loc) · 1.53 KB
/
A Buggy Calculator.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
<form name="Calc">
<table BORDER=4>
<tr>
<td>
<INPUT type="text" name="Input" Size="16">
<br>
</td>
</tr>
<tr>
<td>
<input type="button" name="one" value="1" OnClick="Calc.Input.value += '1'">
<input type="button" name="two" value="2" OnCLick="Calc.Input.value += '2'">
<input type="button" name="three" value="3" OnClick="Calc.Input.value += '3'">
<input type="button" name="plus" value="+" OnClick="Calc.Input.value += ' + '">
<br>
<input type="button" name="four" value="4" OnClick="Calc.Input.value += '4'">
<input type="button" name="five" value="5" OnCLick="Calc.Input.value += '5'">
<input type="button" name="six" value="6" OnClick="Calc.Input.value += '6'">
<input type="button" name="minus" value="-" OnClick="Calc.Input.value += ' - '">
<br>
<input type="button" name="seven" value="7" OnClick="Calc.Input.value += '7'">
<input type="button" name="eight" value="8" OnCLick="Calc.Input.value += '7'">
<input type="button" name="nine" value="9" OnClick="Calc.Input.value += '9'">
<input type="button" name="times" value="x" OnClick="Calc.Input.value += ' * '">
<br>
<input type="button" name="clear" value="c" OnClick="Calc.Input.value = ''">
<input type="button" name="zero" value="0" OnClick="Calc.Input.value += '0'">
<input type="button" name="DoIt" value="=" OnClick="Calc.Input.value = eval(Calc.Input.value)">
<input type="button" name="div" value="/" OnClick="Calc.Input.value += ' / '">
<br>
</td>
</tr>
</table>
</form>