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

For Loops in PHP Forum

View Course » View Exercise

453 points
55f49f5f86f5528109000620_183909386
Submitted by
dgfdgfdgfdgfdgfdgfdgf34_516b8ea93652
almost 4 years ago

Did you set the second part of your loop correctly

For Loops in PHP 4/7

I do not understand what I am doing wrong.



Solo For Loop!



<?php
for ($i = 50; $i > 5; $i = $i - 5) {
echo $i;
}
?>


1 vote

permalink

the instruction is to include 5.
your result asf: 504540353025201510
(without 5)
so i wrote like yours but: $i >= 5
that works for me

473 points
52abb592282ae3dae6004c50_874450605
Submitted by
pambudi
almost 4 years ago