<?php $max = 5; for ($i = 1; $i <= $max; $i++) { for ($j = 1; $j <= $max; $j++) if ($i == $j) { echo "$j"; } else { echo "*"; } echo "\n"; } ?>
You have javascript disabled. You will not be able to edit any code.