while( 10 > $x ) { while($f < $n) { $y++; echo $y; $f = $f + 2; $x++; } $y = $n; $n = $n + 4; $x++; }