Saturday, March 16, 2019

DDP 3

ddp3a.php
<?php
//menghitung penjualan bersih
$jual=100;
$potongan=0.1;
$net=$jual-($jual*$potongan);
echo "Penjualan bersih = Rp $net,00";
?>

**
ddp3b.php
<?php
//penggunaan operator modulus/sisa hasil bagi
$hal=11;
if ($hal % 2 == 0)
echo 'Halaman genap';
else
echo 'Halaman ganjil';
?>

**
<?php
//penggunaan inkremen
for($i=1;$i<=100;$i++){
echo "$i ";
}
?>

**
ddp3c.php
<?php
$hari=date("D");
if ($hari=="Mon")
echo "Selamat berlibur";
else
echo "Selamat bekerja (hlm. 20)";
?>
Bitcoin Offers:
Free Bitcoin, Double Bitcoin, Bitcoin Investment, Bitcoin Trading



"Bitcoin and Forex are high risk business. We must join them smartly."

No comments:

Post a Comment