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

Arrays Forum

View Course » View Exercise

0 points
Default_user
Submitted by
anonymous
over 3 years ago

I CANT FIGURE THIS OUT!!!!!!!!

well i did this code and followed the directions: Write a for loop that counts up by 10, all the way to 100 (e.g. 10, 20, 30...). Inside the for loop, echo the current value of $i, just like in the examples above.
and i got this

<?php
// Write your for loop below!
for ($me = 10; $me < 101; $me = $me + 10) {
echo $me;
}
?>
what did i do wrong please help


0 votes

permalink

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

Try moving the for next to the bracket i.e. without the space and then refresh your browser.

868 points
B71a7da3e681e2f29a073e7e8ddbef37?s=140&d=retro
Submitted by
jedd casella
over 3 years ago