[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] fun with numbers



On Tue, 6 Jun 2000, Perl lover wrote:

> write a program as short as possible(i made one, less than 70
> characters) to print numbers derived from (x+y) ** n (n is 1 to 14)
> in the following format:

[snip Pascal's triangle]

At 63 characters:

  perl -le'@a=1;map{print"@a";$#a++;($i,$_)=($_,$_+$i)for@a}a..o'

-- 
Neko



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe