Computer Science, asked by aaminhussain674757, 1 year ago

write the HTML program to create normal calculator ​

Answers

Answered by MoonGurl01
40

Here ia the source code:

<html>

<head></head>

<body>

<form name=”calculator”>

<table>

<tr>

<td>

<input type="text" name="display" id="display" disabled>

</td>

</tr>

<tr>

<td><input type=”button” name=”one” value=”1" onclick=”calculator.display.value += ‘1’”></td>

<td><input type=”button” name=”two” value=”2" onclick=”calculator.display.value += ‘2’”></td>

<td><input type=”button” name=”three” value=”3" onclick=”calculator.display.value += ‘3’”></td>

<td><input type=”button” class=”operator” name=”plus” value=”+” onclick=”calculator.display.value += ‘+’”></td>

</tr>

</table>

</form>

</body>

</html>

Similar questions