I think is poor example of introducing the while loop


This is the exercise I am trying to solve right after learning about the while loops by means of a not so easy to understand previous example involving coin flipping. I cannot get past this.

$loopCond = true;
while (){
	//Echo your message that the loop is running below
	$loopCond = false;
echo "<p>And now it's done.</p>";

Inthe Hint sections I am being offered this:

while($loopCond == true) {
  echo "<p>The loop is running.</p>";

But I cannot solve it anymore. Stiff. I found this chapter for the first time very cryptic and I suspect the example could be better in previous step. Any help to overcome this will be appreciated. Thanks


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.