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