Pascal's triangle: Difference between revisions

m
Line 1,154:
For n = 0, prints nothing. For negative n, throws an exception.
=={{header|PARI/GP}}==
<lang PARI/GPparigp>pascals_triangle(N)= {
my(row=[],prevrow=[]);
for(x=1,N,