X by varutsu7

<?$n=fgets(STDIN);$h=($n-1)/2+1;for(;$i++<$n;){for($j=0;$j++<($i>$h?$i-1:$n-$i);)echo$j==($i>$h?$n-$i+1:$i)?X:" ";echo"X\n";}

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

download

return to the top page