Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> Menghitung Luas Bujur Sangkar </title>
- </head>
- <body>
- <form method="POST" action="">
- Masukkan nilai sisi (cm) :
- <input type="text" name="sisi" /><br />
- <input type="submit" value="Hitung" /><br />
- </form>
- Hasil perhitungan : <br />
- <?php
- $sisi=$_POST['sisi'];
- $hasil=$sisi * $sisi;
- echo "$hasil";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement