This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Adam Blansett
about 11 years

Why is this not validating?

Ok I know this works though for some reason it’s not validating.

   for ($i = 50; $i >= 5; $i = $i - 5){
        echo "$i<br/>";
      }

Any Ideas?

Answer 5152bb87cac3e761ad000a02

2 votes

Permalink

Looks like this one has bug too like the last one. Error message doesn’t make sense compared to the lesson given:

Oops, try again. Did you set the third part of your loop correctly (the part that counts up by 10s)? Make sure NOT to end this bit with a semicolon! (You only need semicolons for separating values.)

Needs a fix.

points
Submitted by Lainc
about 11 years

Answer 5152d8bea4e07b14d20003af

1 vote

Permalink

Hello, I think you are supposed to use the -= operator in this one. ;-) This seems to be a bug and I think they are going to fix this one very soon. :-)

points
Submitted by boring12345
about 11 years

5 comments

This operator “-=” have helped. Thank you!

Adam Blansett about 11 years

I will try that. Thank you

Adam Blansett about 11 years

Ok i guess I won’t try that “Disconnected. Please try again.” I guess they are fixing the bug.

boring12345 about 11 years

Reload the page (again and again). :-)

Adam Blansett almost 11 years

Yeah I have noticed having to do that a lot…LOL