+ 1

questions

Fill in the blanks to print all the numbers from 0 to 15, except for the numbers 10 and 14???? for ($i=0; $i<=15;$i++) { if ($i==10 || $i 14) { ; } echo $i."<br />"; } how can help me in this question?? please

13th Jun 2019, 6:10 PM
Abdou Sissoko
Abdou Sissoko - avatar
8 Respostas
+ 2
for ($i=0; $i<=15;$i++) { if ($i==10 || $i == 14) { continue ; } echo $i."<br />"; }
11th Mar 2021, 3:24 PM
Yandri Zaita, ST
Yandri Zaita, ST - avatar
+ 1
for ($i=0; $i<=15;$i++) { if ($i==10 || $i 14) { ; } echo $i++; } answer: ++
12th Feb 2022, 9:08 AM
ONANONG AREEDACH
ONANONG AREEDACH - avatar
0
You should use the continue keyword, that will break out of the current iteration of the loop
13th Jun 2019, 6:41 PM
Airree
Airree - avatar
0
Is this your homework?
14th Jun 2019, 3:44 AM
Lexfuturorum
Lexfuturorum - avatar
0
answer is == continue
3rd Feb 2021, 7:50 PM
Prince Issar
Prince Issar - avatar
0
setcookie('logged', 1, time()+ ); what is answer
19th Apr 2021, 6:04 AM
Husan Muminov
Husan Muminov - avatar
0
== continue
2nd May 2021, 1:40 PM
IMTIAZ AHMAD
IMTIAZ AHMAD - avatar
0
== and continue
17th May 2022, 6:26 AM
Megha Raj kandel