This forum is now read-only. Please use our new forums at

For Loops in PHP Forum

View Course » View Exercise

328 points
Submitted by
almost 5 years ago

help !!!!! what is the problem with my code?

for($i = 110;$i > 45 ;$i = $i
- 5){
echo $i;

it ends up at 50 so what is the problem

1 vote


hey, you just have to read the instructions more carefully, it says to start counting at 50 going down to 5 so your variable should start at 50 and decrement by 5 each time till you reach the number 5, hope that helps

717 points
Submitted by
almost 5 years ago

1 Comment

80cd4aa4c501ed8f4cecb331f83535ae?s=140&d=retro immanuelsegol almost 5 years ago

ahh lololo i hate when that happens to me thanks man!!