Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Pascal's triangle...

by YuckFoo (Abbot)
on Jun 20, 2002 at 19:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://176133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-23 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found