<html>
<head>
<title> Calculator from html </title>
</head>
<body>
<script language="JavaScript">
function satu(){
Calc.Input.value += '1'
}
function dua(){
Calc.Input.value += '2'
}
function tiga(){
Calc.Input.value += '3'
}
function empat(){
Calc.Input.value += '4'
}
function lima(){
Calc.Input.value += '5'
}
function enam(){
Calc.Input.value += '6'
}
function tujuh(){
Calc.Input.value += '7'
}
function delapan(){
Calc.Input.value += '8'
}
function sembilan(){
Calc.Input.value += '9'
}
function nol(){
Calc.Input.value += '0'
}
function tambah(){
Calc.Input.value += '+'
}
function kurang(){
Calc.Input.value +='-'
}
function kali(){
Calc.Input.value += '*'
}
function bagi(){
Calc.Input.value +='/'
}
function titik(){
Calc.Input.value += '.'
}
function samadengan(){
Calc.Input.value = eval(Calc.Input.value)
}
function bersih(){
Calc.Input.value = ''
}
</script>
<form>
<h4><i><font>
" Jasa Evan Sipayung's Calculator"
</font></i></h4>
</form>
<form name="Calc">
<input type="text" name="Input" size="29">
</form>
<form>
<input type="button" name="one" value=" 1 " onclick="satu()">
<input type="button" name="one" value=" 2 " OnClick="dua()">
<input type="button" name="one" value=" 3 " onclick="tiga()">
<input type="button" name="one" value=" + " OnClick="tambah()"><br>
<input type="button" name="one" value=" 4 " onclick="empat()">
<input type="button" name="one" value=" 5 " OnClick="lima()">
<input type="button" name="one" value=" 6 " onclick="enam()">
<input type="button" name="one" value=" - " OnClick="kurang()"><br>
<input type="button" name="one" value=" 7 " onclick="tujuh()">
<input type="button" name="one" value=" 8 " OnClick="delapan()">
<input type="button" name="one" value=" 9 " onclick="sembilan()">
<input type="button" name="one" value=" * " OnClick="kali()"><br>
<input type="button" name="." value=" . " OnClick="titik()">
<input type="button" name="0" value=" 0 " OnClick="nol()">
<input type="button" name="=" value=" = " OnClick="samadengan()">
<input type="button" name="one" value=" / " OnClick="bagi()"><br>
<input type="button" name="one" value=" CLEAR " OnClick="bersih()">
</form>
</body>
</html>