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

For Loops in PHP Forum

View Course » View Exercise

879 points
56de1d525917ecb67a000092_706633659
Submitted by
Alia
over 4 years ago

Correct Answer ^__^

<?php
// Echoes the first five even numbers
for ($i = 2; $i < 11; $i = $i + 2) {
echo $i;
}
// echoes 246810
?>


-2 votes

permalink

not working <?php
// Echoes the first five even numbers
for ($i = 2; $i < 11; $i = $i + 2) {
echo $i;
}
// echoes 246810
?>

407 points
528e510080ff3303b0000d2b_550164241
Submitted by
treywhite713
over 3 years ago


-4 votes

permalink

Thank you!

219 points
2b95b8a7dc0ca2591b6ee364a14ecf2a?s=140&d=retro
Submitted by
a_sharma10
about 4 years ago