Anonymous user
Pascal's triangle: Difference between revisions
→{{header|Pari}}
No edit summary |
|||
Line 785:
For n = 0, prints nothing. For negative n, throws an exception.
=={{header|Pari\GP}}==
<lang Pari\GP>pascals_triangle(N)= {
my(row=[],prevrow=[]);
for(x=1,N,
Line 801:
);
}</lang>
=={{header|Perl}}==
<lang perl>sub pascal
|