pertemuan ke-1 sub conditional _ looping
DESCRIPTION
Pertemuan Ke-1 Sub Conditional _ LoopingTRANSCRIPT
![Page 1: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/1.jpg)
Conditionals and Looping
Rizky Tri Asmono
![Page 2: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/2.jpg)
Conditional● IF/ELSE● Switch-case
![Page 3: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/3.jpg)
Basic If Statement
![Page 4: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/4.jpg)
Contoh If
![Page 5: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/5.jpg)
Else if
![Page 6: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/6.jpg)
Using Logical Operator
![Page 7: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/7.jpg)
Basic Switch Case
![Page 8: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/8.jpg)
Contoh Switch Case
![Page 9: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/9.jpg)
Latihan
Buat program yang menampilkan jumlah hari pada bulan tertentuContoh$bulan = 1;output 31
![Page 10: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/10.jpg)
Looping
![Page 11: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/11.jpg)
While
![Page 12: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/12.jpg)
Do-While
![Page 13: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/13.jpg)
For
![Page 14: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/14.jpg)
Foreach
![Page 15: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/15.jpg)
Contoh Foreach
![Page 16: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/16.jpg)
Contoh Foreach dengan Key
![Page 17: Pertemuan Ke-1 Sub Conditional _ Looping](https://reader036.vdocuments.us/reader036/viewer/2022062309/5695d1301a28ab9b02958581/html5/thumbnails/17.jpg)
Latihan
1. Buat array yang berisi angka 1-102. Tampilkan array tersebut menggunakan metode
looping