SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | - | $nama = "Aldino Kemal"; |
3 | + | $tresholdNilai = 75; |
4 | - | echo "Halo {$nama}, Selamat belajar di kelas PHP"; |
4 | + | $tresholdKehadiran = 80; |
5 | ||
6 | $skorAnda = 80; | |
7 | $absenAnda = 90; | |
8 | ||
9 | if ($skorAnda >= $tresholdNilai && $absenAnda >= $tresholdKehadiran) { | |
10 | echo "Anda Lulus"; | |
11 | }else{ | |
12 | echo "Anda Tidak Lulus"; | |
13 | } |