Created
October 12, 2015 17:06
-
-
Save SunDi3yansyah/ef6ea17a2c738248775e to your computer and use it in GitHub Desktop.
Tugas Pemrograman Web Lanjut {M. Rudyanto Arief, MT}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nilai_angka = 85; | |
$mata_kuliah = 'Pemrograman Web Lanjut'; | |
if ($nilai_angka > 80) { | |
$nilai_huruf = 'A'; | |
$ket = 'Lulus'; | |
} elseif ($nilai_angka > 60) { | |
$nilai_huruf = 'B'; | |
$ket = 'Lulus'; | |
} elseif ($nilai_angka > 50) { | |
$nilai_huruf = 'C'; | |
$ket = 'Lulus'; | |
} elseif ($nilai_angka > 40) { | |
$nilai_huruf = 'D'; | |
$ket = 'Lulus'; | |
} elseif ($nilai_angka > 10) { | |
$nilai_huruf = 'E'; | |
$ket = 'Tidak Lulus'; | |
} elseif ($nilai_angka > 0) { | |
$nilai_huruf = 'K'; | |
$ket = 'Tidak Lulus'; | |
} | |
echo 'Informasi '.$mata_kuliah.', '.$nilai_angka.', '.$nilai_huruf.', dan keterangan '.$ket.'.'; |
Aku kasi Start dulu biar ganteng mastah hahhaa
Oke mastah 💃
☕ cheersss
☕
hoho tugas kuliah taro di github, keren mastaaaaaaah
ini ngasih bocoran mastah hahahaaa
gillssss tugas kuliah.. keren mastahh.. warbyasaah, khanmaen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Atau
Screenshot