prototype of calculator

This commit is contained in:
2018-05-08 23:14:38 +08:00
commit b0cb439f6a
4 changed files with 174 additions and 0 deletions

50
calculator.jsp Normal file
View File

@ -0,0 +1,50 @@
<%@ page contentType="text/html; charset=big5" %>
<html>
<head>
<title> Calculator </title>
</head>
<body>
<form action="calculator.jsp" method=post>
<p>
<input name="display">
<br>
<input name="%" type="submit" value="%">
<input name="root" type="submit" value="root">
<input name="square" type="submit" value="square">
<input name="reciprocal" type="submit" value="reciprocal">
<br>
<input name="CE" type="submit" value="CE">
<input name="C" type="submit" value="C">
<input name="X" type="submit" value="X">
<input name="/" type="submit" value="/">
<br>
<input name="7" type="submit" value="7">
<input name="8" type="submit" value="8">
<input name="9" type="submit" value="9">
<input name="*" type="submit" value="*">
<br>
<input name="4" type="submit" value="4">
<input name="5" type="submit" value="5">
<input name="6" type="submit" value="6">
<input name="-" type="submit" value="-">
<br>
<input name="1" type="submit" value="1">
<input name="2" type="submit" value="2">
<input name="3" type="submit" value="3">
<input name="+" type="submit" value="+">
<br>
<input name="+-" type="submit" value="+-">
<input name="0" type="submit" value="0">
<input name="." type="submit" value=".">
<input name="=" type="submit" value="=">
</p>
</form>
</body>
</html>