Your frist while loop- Plz solve this problem!


#1








<?php
//Add while loop below
$loopCount=2;
while($loopCount<=8)
{
echo "

Iteration number: {$loopCount}

";
$loopCount ++;
}
?>


#2

And what is your Issue?

This code runs.


#3

I can't run this code in "Codecademy.com", plz check it and inform me how many syntax error here...


#4

Here is the result:

Iteration number: 2 Iteration number: 3 Iteration number: 4 Iteration number: 5 Iteration number: 6 Iteration number: 7 Iteration number: 8

No errors given.


#5

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