<?php $num = 4; echo "<pre>"; for ($i = 1; $i <= $num; ++$i) { printf("% {$num}d<br>", (10 ** $i - 1) / 9 * $i); }
You have javascript disabled. You will not be able to edit any code.