<script language="javaScript">
function topla(ne){
ne.sonuç.value=parseFloat(ne.say1.value)+parseFloat(ne.say2.value);
}
function çikar(ne){
ne.sonuç.value=parseFloat(ne.say1.value)-parseFloat(ne.say2.value);
}
function çarp(ne){
ne.sonuç.value=parseFloat(ne.say1.value)*parseFloat(ne.say2.value);
}
function böl(ne){
ne.sonuç.value=parseFloat(ne.say1.value)/parseFloat(ne.say2.value);
}
function ort(ne){
ne.sonuç.value=[parseFloat(ne.say1.value)+parseFloat(ne.say2.value)]/2;
}
</script>
<table width="200" bgcolor="#000000" border="0">
<tbody>
<tr>
<td>
<form name="formum">
<font color="#ffffff"><center><strong>SAYI ISLEMCISI S.1.0</strong></center>1.sayi<input name="say1" type="text" /> <br />
2.sayi<input name="say2" type="text" /> <br />
sonuç<input name="sonuç" type="text" /> <center><input type="button" onclick="topla(this.form)" value="+" /> <input type="button" onclick="çikar(this.form)" value="-" /> <input type="button" onclick="çarp(this.form)" value="x" /> <input type="button" onclick="böl(this.form)" value="/" /> <input type="button" onclick="ort(this.form)" value="ort" /> <input type="reset" value="SIL" /><hr />
©2008 www.kodmerkezi.tr.gg</center></font>
</form>
</td>
</tr>
</tbody>
</table>
|