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

For Loops in PHP Forum

View Course » View Exercise

628 points
55871946e39efe8514000192_737267073
Submitted by
JamesBarr1_554312d5d3292f0978000109_
almost 2 years ago

Code doesn't work even though i'm sure it is right

Solo For Loop!



<?php
// Write your for loop below!
for ($i = 0; $i < 101; $i = $i + 10) {
echo $i;
}
?>


0 votes

permalink

Try deleting some space before the closing curly braket so that it lines up with "for" and is located before "echo"

487 points
Picture
Submitted by
Evan Senkoff
almost 2 years ago


0 votes

permalink

james did you ever get passed this exercise? if so, how did you?

523 points
552c866286f552f0d40000f3_406724908
Submitted by
gigaBlaster33714
almost 2 years ago