Anonymous user
Pascal's triangle: Difference between revisions
m
→An alternative
m (→An alternative) |
|||
Line 4,000:
% and then adding the paired values in that row. The triangle is produced
% by prepending the row at N-1 to the preceding rows as recursion unwinds.
% The triangle produced by pascal/3 is
% so pascal/2 prepends the last row to the triangle and reverses it.
% Finally, pascal/1 produces the triangle, iterates each row and prints it.
|