Triangle by tyoro

<?for($i=fgets(STDIN);$i>$c;$j++)$c+=$j;for($c++;$j>1;$y++){$c-=--$j;$s.=$d=$c;for($k=0;$k<$y;){$d+=++$k+$j;$s.=$d>$i?'':" $d";}$s.="
";}echo$s;

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page