MEMBUAT WEB DESIGN pengurangan,penjumlahan.pembagian,dan perkalian

<p>penjumlahan</p>
<form id="form1" name="form1" method="post" action="">
bilangan1 :
<label>
<input type="text" name="bil1" id="bil1" />
</label>
<br />
bilangan2 :
<input type="text" name="bil2" id="bil2" />
<br />
<input type="submit" name="kirim" id="kirim" value="kirim" />
</form>
<?php
$bil1 = $_POST['bil1'];
$bil2 = $_POST['bil2'];
$jumlah = $bil1+$bil2;
echo "hasil penjumlahan = $jumlah";
?>
<p>&nbsp;</p>
<p>perkalian</p>
<form id="form1" name="form1" method="post" action="">
bilangan1 :
<label>
<input type="text" name="bil1" id="bil1" />
</label>
<br />
bilangan2 :
<input type="text" name="bil2" id="bil2" />
<br />
<input type="submit" name="kirim" id="kirim" value="kirim" />
</form>
<?php
$bil1 = $_POST['bil1'];
$bil2 = $_POST['bil2'];
$jumlah = $bil1*$bil2;
echo "hasil penjumlahan = $jumlah";
?>
<p>&nbsp;</p>
<p>pengurangan</p>
<form id="form1" name="form1" method="post" action="">
bilangan1 :
<label>
<input type="text" name="bil1" id="bil1" />
</label>
<br />
bilangan2 :
<input type="text" name="bil2" id="bil2" />
<br />
<input type="submit" name="kirim" id="kirim" value="kirim" />
</form>
<?php
$bil1 = $_POST['bil1'];
$bil2 = $_POST['bil2'];
$jumlah = $bil1-$bil2;
echo "hasil penjumlahan = $jumlah";
?>
<p>&nbsp;</p>
<p>pembagian</p>
<form id="form1" name="form1" method="post" action="">
bilangan1 :
<label>
<input type="text" name="bil1" id="bil1" />
</label>
<br />
bilangan2 :
<input type="text" name="bil2" id="bil2" />
<br />
<input type="submit" name="kirim" id="kirim" value="kirim" />
</form>
<?php
$bil1 = $_POST['bil1'];
$bil2 = $_POST['bil2'];
$jumlah = $bil1/$bil2;
echo "hasil penjumlahan = $jumlah";
?>
<p>&nbsp;</p>

0 komentar:

Posting Komentar