in reply to Re: (golf) Triangle of numbers
in thread (golf) Triangle of numbers

I can trim two chars from that.... to tie japhy at 68
# 1 2 3 4 5 6 #2345678901234567890123456789012345678901234567890123456789012345678 $n=length$a++*$a/2;map{map{printf" %$n.d",++$k}1..$_;print$/}1..$a-1

-Blake

Replies are listed 'Best First'.
Re: Re: Re: (golf) Triangle of numbers
by hopes (Friar) on Oct 26, 2001 at 19:12 UTC
    I can beat 2 characters.
    How about this (66 chars):
    $n=length$a++*$a/2;map{map{printf" %$n.d",++$k}2..$_;print$/}0..$a

    There are two "\n", I know, but writes exactly what I want... :-)
    Hopes