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

banner
Close banner
0 points
Submitted by mudkip123
about 9 years

what is wrong with my code

this is my code:

Answer 54e8d9b786f552ae25001b56

1 vote

Permalink

Do this:                             Add " " .

for ($i = 10; $i < 101; $i = $i + “” . 10) { echo $i; } Then just erase that part, glitch went away for me.

Final REsult = for ($i = 10; $i < 101; $i = $i + 10) { echo $i; }

points
about 9 years

Answer 54c7f8df76b8fe8c68003ce0

0 votes

Permalink

You forgot to use closing brackets for the for loop!

<?php
for ($i = 10; $i < 11; $i++) {
echo $i;
}
?>
points
about 9 years

Answer 54ce8e9fe39efeaf3f003f68

0 votes

Permalink

  1. Refresh your page
  2. add <p>$i</p> to your echo
points
Submitted by Eric Xu
about 9 years