I will give an example PHP program is executed via localhost and Xampp. his way is not difficult and it is easy to understand when you create it. This will mempermudahkan you to understand PHP.
This program can you make it through notepad, notepad++, or Macromedia Dreamweaver 8 and others. Here's how:
<?php
//nama:__________
//npm:___________
echo "<p>Nama : ______________</p>";
echo "<p>NPM : ______________</p>";
echo "<p>Ruang : ____</p>";
$a = 12;
$b = 6;
$c = 2;
$d = $a * $b * $c;
echo "<p>Hasil kali :</p>";
echo "$d";
$a = 12;
$b = 6;
$c = 2;
$d = $a / $b / $c;
echo "<p>Hasil bagi :</p>";
echo "$d";
$a = 12;
$b = 6;
$c = 2;
$d = $a + $b + $c;
echo "<p>Hasil tambah :</p>";
echo "$d";
$a = 12;
$b = 6;
$c = 2;
$d = $a - $b - $c;
echo "<p>Hasil kurang :</p>";
echo "$d";
?>
- Real Madrid Hilangkan Salib Di Logonya Demi Bank Abu Dhabi.
- Dafar terlaris Mobil Hatchback dalam 10 bulan.
- Medan Gaya Listrik
- Nokia Lumia 730 Versi Dual SIM.
- Contoh Dan Cara Membuat Program PHP : Penjumlahan Matriks
- Cara membuat Blog dengan Blogger.
0 komentar:
Post a Comment