I don´t see an infinite cycle


#1

Regards!,
I have a problem on having come to the third lesson from "How to write
your first cycle "For" ", my code this one frees of mistakes and
nonetheless and it says to me that infinite cycles are
generated, that proceeds in these cases? :unamused:
:disappointed_relieved: :confused:


#2

can you post your code here and let us take a look and give you an explanation?

if you want to format your code when you paste it here you have three options

  1. select the code (after you paste it here) and press ctrl + k or
  2. select the code(after you paste it here) and press </> in the tools pane
  3. put this character ` three times at the begining and end of code

#3

<?php
// Write your for loop below!
for($a=10;$a<=100;$a+=10){
echo "$a";
}
?>
It says that cycle gone infinite, but i think my code is without problems. I stuck at this for a week. I can't pass it and continue the lessons of php.


#4

can you post a link to that excercise?


#5

https://www.codecademy.com/courses/web-beginner-en-L83Do/0/3?curriculum_id=5124ef4c78d510dd89003eb8
now i tried one more time it works.


#6

That is great. :smile:
Happy coding


#7

hi, i have same issue, could you help me pls?