Unit 1 Just Click "periksa" gausa diapa2in, cukup dipahamin aja kodingannya okeh? Unit 2 for ($i = 2; $i < 11; $i = $i + 2) { echo $i; } //itu tanda tanyanya diganti sesuai contoh ya, jadinya kaya yg diatas Unit 3 for ($i = 10; $i < 101; $i +=10){ echo $i . "\n"; }// Anda pasti bisa! ^_^ Unit 4 for ($i = 50; $i > 0; $i -= 5) { echo $i . "\n"; } Unit 5 $arr_bahasa = array("JavaScript", "HTML/CSS", "PHP", "Python"); foreach ($arr_bahasa as $bahasa) { echo $bahasa . "\n"; } Unit 6 $kalimat = array("Indonesia ", "adalah ", "negara ", "dengan " , "populasi ", "terbanyak ", "ke empat"); foreach ($kalimat as $kata) { echo $kata; } Unit 7 $fakta = array("Orangutan ", "adalah ", "primata ", "terpintar " , "di", " dunia."); foreach ($fakta as $realita){ echo $realita; } Good Luck! ^_^
1 jempol