HTML CODINGS FOR SIMPLE CALCULATOR, Exercises of Computer science

TO MAKE YOUR OWN CALCULATOR COPY THE ABOVE CODE AND PASTE IT IN NOTEPAD AND SAVE IT WITH EXTENSION .HTML AND OPEN THE SAVED FILE IT WILL OPEN IN YOUR BROWSER THEN YOU CAN DO CALCULATION WITH YOUR OWN CREATED CALCULATOR

Typology: Exercises

2016/2017

Uploaded on 03/24/2017

jack-hawking
jack-hawking 🇬🇧

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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: