+ 4

Whats the solution

What output results from the following code? $x = 0; while($x<=7) { $x++; } echo $x;

30th Jan 2018, 9:43 AM
Munashe Pande
Munashe Pande - avatar
10 odpowiedzi
+ 2
8 will be the output
10th Sep 2018, 1:50 PM
Lokesh M. Pincha
Lokesh M. Pincha - avatar
+ 1
There is no problem with the code, what solution exactly are you looking for? the code outputs 8 by the way.
30th Jan 2018, 12:59 PM
Ipang
+ 1
8 was output
27th Dec 2018, 5:11 PM
kenny George
kenny George - avatar
+ 1
answer is 8
19th Feb 2019, 11:52 AM
vanessa ngendo
+ 1
8
10th Oct 2019, 12:07 PM
Takudzwa Kangata
Takudzwa Kangata - avatar
+ 1
8
7th Apr 2020, 9:18 PM
Muhammad Awais
Muhammad Awais - avatar
+ 1
8
2nd May 2020, 11:02 AM
Muhammad Waqas Azeem
+ 1
Someone please let me know that how is the answer 8?
20th Feb 2021, 1:47 PM
Jaydeep Bhattacharya
Jaydeep Bhattacharya - avatar
+ 1
8
29th Mar 2021, 10:13 PM
Chinma Kindness
Chinma Kindness - avatar
+ 1
its answer is 8
17th Dec 2021, 7:36 PM
Ayush Kumar
Ayush Kumar - avatar