Writing Your First 'For' Loop No.3 - Did you set the second part of your loop correctly (the part that ends the loop)? Don't forget your semicolon!


#1

Hi,

I am trying pass with this code

But I am getting this issue b<>"Oops, try again. Did you set the second part of your loop correctly (the part that ends the loop)? Don't forget your semicolon!"

Why? All is right, the result is right, not? All things were printed , so I don't understand what the codecademy wants...

Someone can help me?


#2

We would all appreciate raw code to work with, rather than just a picture. Please post code that we can copy and test. Thank you.

The problem relates to embellishment. The exercise does not expect any whitespace or punctuation. Your output should be 102030405060708090100

for ($i = 10; $i < 101; i+=10) {
    echo i;
}

#3

for ($i = 10; $i < 101; i++) {
echo i;
}

this will not output 1020304050.....etc
it will output 10 11 12...cuz you give $i to go up by 1 not 10 .... and its buged it wont work any case u try


#4

Typo. Thanks for pointing it out. Fixed.