This forum is now read-only. Please use our new forums! Go to forums
3/7 Cant load the loop till 100
every time i click the submit button it says
Something went wrong :( Click Close to try again or refresh the page.
I dont think that my code is wrong. Here it is,
<html>
<head>
<title>Solo For Loop!</title>
</head>
<body>
<p>
<?php
// Write your for loop below!
for ($i = 10; $i < 100; $i + 10) {
echo $i;
}
?>
</p>
</body>
</html>
Im using mozilla firefox
Answer 55e37f3251b887cbe2000540
Answer 55e4051ce39efeb29b0005e6
Answer 55e43f8a95e378f8dd0002f1
it’s editor problem. if you write this code on another notepad and copy code from notepad and past the codecadamy ide then it’s work.
Answer 55e4bcfa95e378a8970001d1
Answer 55e7093ae39efe0ce400021c
Same here. I posted this somewhere else on the forum. Same issue in the conditions section as well so moved on. It worked fine and allowed me to do other sections but then did it again in the Loops section.
Answer 55e8e5bbe39efe62ee000747
same problem here, but to me, the page doesn’t work at all
1 comments
edit: if the page is stuck with the rotating loading icon blocking the reset code button, use the browser’s dev mode to delete this layer, worked for me
Answer 55ee5b6be39efe33bd000448
“Write a for loop that counts up by 10, all the way to 100” In your condition you have $i<100, this means that 100 is never going to be reached. Try $i <= 100.
for ($i = 10; $i <= 100; $i = $i + 10) { 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
1 comments
It worked later on