This forum is now read-only. Please use our new forums at

For Loops in PHP Forum

View Course » View Exercise

284 points
Submitted by
over 3 years ago

Error in 3/7

for ($i = 0; $i < 11; $i++) {
    echo $i;

This outputs numbers from 0 to 10, not from 1 to 10.

This is very misleading, since to solve the exercise (from 10 to 100) the starting condition needs to be $i=10, not $i=0, as this example would lead the student to believe.

1 vote


Well you are right

802 points
Submitted by
Paritosh Kulkarni
over 3 years ago