Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Pascal's triangle...

by gumby (Scribe)
on Jun 19, 2002 at 13:33 UTC ( #175665=note: print w/replies, xml ) Need Help??


in reply to Pascal's triangle...

#!/usr/bin/perl -wl sub pascal { while (s/\d+(?= (\d+))/$&+$1/eg < shift) { s/^/1 /; print; } }
Which is basically Re: Pascal triange... in essence.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://175665]
help
Chatterbox?
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-01-20 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.