This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
I receive an error message saying that my loop doesn't echo 20
Answer 52af86757c82ca1f80000306
Answer 52b0a0db80ff3317a0003135
0 votes
First, on the little screen to the right of the coding area – make that full size to see if you’ve an answer. If the answer is correct, it is codeacademy’s answer checker that is at fault
Anyway, change $i < 11 to $i < 101. Check the full-size editor screen to see if you’ve now the correct answer. If so, change echo $i** to **echo “ {$i}
1 comments
psedler over 10 years
that should be echo “
{$i}
“;Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
No, I didn’t get any output. I don’t understand why the code isn’t working, I was told to do this when I looked at the hint. Should I make the variable less than 100?
for ($leap = 10; $leap <= 100; $leap = $leap+10 ){ echo “
$leap
“; }