Skip to main content

CALCULATOR

<html>
<head>
    <title>
        SBHK Calculator
    </title>
</head>
<body bgcolor="" text="blue"><center>


<fieldset style="width:100px;"><legend><font color="red"><marquee><u>Welcome to SBHK Calculator</u></marquee></font></legend>
<form name="calculator">
    <fieldset><br>
        <input type="button" value="-" onclick="document.calculator.ans.value+='-'">
        <input type="button" value="+" onclick="document.calculator.ans.value+='+'">
        <input type="button" value="*" onclick="document.calculator.ans.value+='*'">
        <input type="button" value="/" onclick="document.calculator.ans.value+='/'">
        <input type="button" value="=" onclick="document.calculator.ans.value=eval(document.calculator.ans.value)"><hr>
       
        <input type="button" value="1" onclick="document.calculator.ans.value+='1'">
        <input type="button" value="2" onclick="document.calculator.ans.value+='2'">
        <input type="button" value="3" onclick="document.calculator.ans.value+='3'"><br>
        <input type="button" value="4" onclick="document.calculator.ans.value+='4'">
        <input type="button" value="5" onclick="document.calculator.ans.value+='5'">
        <input type="button" value="6" onclick="document.calculator.ans.value+='6'"><br>
        <input type="button" value="7" onclick="document.calculator.ans.value+='7'">
        <input type="button" value="8" onclick="document.calculator.ans.value+='8'">
        <input type="button" value="9" onclick="document.calculator.ans.value+='9'"><br>
        <input type="button" value="0" onclick="document.calculator.ans.value+='0'">
        <input type="reset" value="Reset"><br><hr>
        <font color="green"><b>Solution is</b></font> </&nsp></&nsp><input type="textfield" name="ans" value="" placeholder="TYPE QUESTION HERE">
    </fieldset><br>
       
Created by:<br> <i><b>Shubham Kumar<b><i>
</fieldset>
</form></center>
</body>

OUTPUT (Click Here To Check it.)

Missing