Ekspresi | Kampus | Belajar HTML dan PHP | Kontak | Gmail | Uang Adsense
Kemahasiswaan Kilas Santai
PMB Online STMIK Jabar 2022
STMIK JABAR
LP3I Tasikmalaya
STAI Al-Falah
Pengobatan Ruqyah
Belajar Pemrograman PHP, MySQL, Framework CI, Domain, Hosting, CMS Wordpress, Framework Laravel. Yang Penting ada menu DAFTAR ISI
Daftar Isi | Skripsi | B. Arab | Ruqyah | PrivacyPolicy | Inggris Arab | Google Translate

Monday, February 21, 2022

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 and Forex are high risk business. We must join them smartly."
Youtube: Katabah Com: Menuju 1 jt Konten :)

1 comment:

  1. Casino.com - Dr.CMC
    The Company 당진 출장안마 has 2 million square feet of 광주 출장안마 gaming space for you. View our detailed profile for further information. Location: 제천 출장안마 1 Mohegan Sun 이천 출장안마 Boulevard Uncasville, CT 06382. 대구광역 출장마사지

    ReplyDelete