This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Jub
over 8 years

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

0 votes

Permalink

I am having exact the same problem.

points
Submitted by Artiom Lootus
over 8 years

1 comments

Artiom Lootus over 8 years

It worked later on

Answer 55e4051ce39efeb29b0005e6

0 votes

Permalink

same problem

points
Submitted by Kris D'Amato
over 8 years

Answer 55e43f8a95e378f8dd0002f1

0 votes

Permalink

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.

points
Submitted by Inversemaha
over 8 years

Answer 55e4bcfa95e378a8970001d1

0 votes

Permalink

Have same issue. Notepad solution does not work for me.

points
Submitted by Tiergan
over 8 years

Answer 55e7093ae39efe0ce400021c

0 votes

Permalink

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.

points
over 8 years

Answer 55e8e5bbe39efe62ee000747

0 votes

Permalink

same problem here, but to me, the page doesn’t work at all

points
Submitted by Wallace Kutner
over 8 years

1 comments

Wallace Kutner over 8 years

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

0 votes

Permalink

“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; }

points
over 8 years