Bug in greater than sign


#1


According to your tutorial it will output to 100. When definitely it will result wiith an error! Why? Because you declared $i = 0. Meaning its value is 0. Then the next part is comparison. < This is less than! Not a greater than sign! But by the tutorial it looks like you've made your own greater  than sign. < This is less than not greater than! 

       for($i = 0; $i <= 100; $i = $i + 10)
  {
      echo $i;
  }


#2

According to your tutorial it will output to 100.

It will output to 100.

When definitely it will result wiith an error!

It does not result in an error -> https://repl.it/CquY/0

< This is less than! Not a greater than sign!

Well, that's true... so?

But by the tutorial it looks like you've made your own greater than sign.

I don't understand this part.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.