Advertisement
noonarhz

aq

Mar 23rd, 2019
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.48 KB | None | 0 0
  1. <html>
  2.     <head>
  3.     <title> Menghitung Luas Bujur Sangkar </title>
  4.     </head>
  5.     <body>
  6.         <form method="POST" action="">
  7.         Masukkan nilai sisi (cm) :
  8.         <input type="text" name="sisi" /><br />
  9.         <input type="submit" value="Hitung" /><br />
  10.         </form>
  11.  
  12.         Hasil perhitungan : <br />
  13.        
  14.         <?php
  15.            $sisi=$_POST['sisi'];
  16.            $hasil=$sisi * $sisi;
  17.            echo "$hasil";
  18.        ?>
  19.     </body>
  20. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement