Jump to content

Pascal's triangle: Difference between revisions

m
Line 12:
=={{header|Ada}}==
 
The specification of auxiliary package "Pascal". "First_Row" outputs a row with a single "1", "Next_Row" computes the next row from a given row, and "Length" gives the number of entries in a row. The package is also used for the Catalan numbers solution [[http://rosettacode.org/wiki/Catalan_numbers#Ada/Pascal%27s_triangle]]
 
<lang ada>package Pascal is
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.