Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pascal's triangle...

by YuckFoo (Abbot)
on Jun 20, 2002 at 19:59 UTC ( #176133=note: print w/ replies, xml ) Need Help??


in reply to Pascal's triangle...

I dug this nugget out of my snippets directory. It's not mine and I don't know who to credit.

YuckFoo

#!/usr/bin/perl while((@_=(1,map$_[$_-1]+$_[$_],1..@_))<=$ARGV[0]){print"@_\n"}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2016-08-25 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (362 votes). Check out past polls.