Docsity

HTML CODINGS FOR SIMPLE CALCULATOR, Exercises of Computer science

Toggle sidebar
bg1
SIMPLE CALCULATOR IN JAVA SCRIPT
<html>
<head>
<title>
simple calculator
</title>
<style type="text/css">
input#search
{
width:40px;
height:40px;
}
</style>
</head>
<body bgcolor="white">
<center>
SIMPLE CALCULATOR
<form name="cal">
<table border="5"cellpadding="4" cellspacing="4">
<tr><td>
<input type="text"name="x"size="20">
</td></tr><br>
<tr><td>
<input type="button" name="a1" id="search" value="1" onclick="cal.x.value
+='1'">
<input type="button" name="a2" id="search" value="2" onclick="cal.x.value
+='2'">
<input type="button" name="a3" id="search" value="3" onclick="cal.x.value
+='3'">
<input type="button" name="plus" id="search" value="+" onclick="cal.x.value
+='+'">
<br>
<input type="button" name="a4" id="search" value="4" onclick="cal.x.value
+='4'">
<input type="button" name="a5" id="search" value="5" onclick="cal.x.value
+='5'">
<input type="button" name="a6" id="search" value="6" onclick="cal.x.value
+='6'">
pf3
pf4

Partial preview of the text

Download HTML CODINGS FOR SIMPLE CALCULATOR and more Exercises Computer science in PDF only on Docsity!

SIMPLE CALCULATOR IN JAVA SCRIPT

simple calculator

SIMPLE CALCULATOR






OUTPUT 1: