Pascal's triangle: Difference between revisions

Line 785:
 
For n = 0, prints nothing. For negative n, throws an exception.
=={{header|PariPARI\GP}}==
<lang PariPARI\GP>pascals_triangle(N)= {
my(row=[],prevrow=[]);
for(x=1,N,
Anonymous user