Anonymous user
Pascal's triangle: Difference between revisions
m
→{{header|REXX}}: added AKA's (also known as) to pay homage to other mathematicians of yore. -- ~~~~
(→{{header|REXX}}: added the check for N≤0 (which is part of the task's requirements). -- ~~~~) |
m (→{{header|REXX}}: added AKA's (also known as) to pay homage to other mathematicians of yore. -- ~~~~) |
||
Line 1,938:
=={{header|REXX}}==
<lang rexx>/*REXX program to display Pascal's triangle, neatly centered/formatted.*/
/*AKA: Yang Hui's ▲, Khayyam-Pascal ▲, Kyayyam ▲, Tartaglia's ▲ */
arg n .; if n=='' then n=10
if n<1 then do; say "***error!*** N can't be non-positive:" n; exit 13;end
|