Writing your first for loop. Code works, exercise wont recognize



I have written the loop, its executes and 0-100 are displayed in the window, just like it asks me to. But I get an error that says oops lloks like nothing was echoed, even though it has. Any ideas?

    <title>Solo For Loop!</title>
      // Write your for loop below!
for ($i = 0; $i < 101; $i = $i + 10) {
    echo $i;


In this exercise, the PHP is wrapped in a <p></p> element. It also starts at 10, not zero.


I have the same problem. My code:

  // Write your for loop below!
  for ($i = 10 ; $i < 101 ; $i = $i + 10) {
    echo $i;

(it is in HTML style)
and I see:

Oops, try again. Did you set the first part of your loop correctly (the part that starts the loop)? Don't forget your semicolon!

I don't know what's wrong..;/


Try removing the space from before each semi-colon.


Hi, it works now, thanks a lot!