Commit e4676b82 authored by Rajeshgoud's avatar Rajeshgoud

Add new file

parent 3bfca620
Pipeline #4981 passed with stage
in 15 seconds
<html>
<head>
<title>calculator</title>
</head>
<body bgcolor="gold">
<form name="calculator">
<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">
<input type="button"value="+"onclick="document.calculator.ans.value+="+">
<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">
<input type="button"value="*"onclick="document.calculator.ans.value+="*">
<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">
<input type="button"value="-"onclick="document.calculator.ans.value+="-">
<br>
<input type="button"value="/"onclick="document.calculator.ans.value+="/">
<input type="button"value="0"onclick="document.calculator.ans.value+="0">
<input type="button"value="%"onclick="document.calculator.ans.value+="%">
<input type="button"value="1"onclick="document.calculator.ans.value=eval(document.calculator.ans.value)">
<br>
<input type="reset"value="Reset">
solution is<input type="textfield"name="ans"value="">
</form>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment