Membuat Program PHP yang akan Menghasilkan Informasi Pendapatan


Program :


<?php
$nama ="Akbar Agus Wijaya";
echo "Nama : $nama <br/>";
echo "<br/>";
echo "<br/>";
$pendapatan = array(
1 => "Rp 2.000.000",
2 => "Rp 4.000.000",
3 => "Rp 6.000.000",
4 => "Rp 8.000.000",
5 => "Rp 10.000.000",
6 => "Rp 12.000.000",
7 => "Rp 14.000.000",
8 => "Rp 16.000.000",
9 => "Rp 18.000.000",
10 => "Rp 20.000.000");
foreach ($pendapatan as $key => $value){
echo "Bulan ke-".$key." Pendapatan = ".$value."<br/>";
}
?>

Share this:

ABOUT THE AUTHOR

Hello We are OddThemes, Our name came from the fact that we are UNIQUE. We specialize in designing premium looking fully customizable highly responsive blogger templates. We at OddThemes do carry a philosophy that: Nothing Is Impossible

0 komentar:

Post a Comment