Pascal's triangle: Difference between revisions
Content added Content deleted
(→{{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: | Line 1,938: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
<lang rexx>/*REXX program to display Pascal's triangle, neatly centered/formatted.*/ |
<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 |
arg n .; if n=='' then n=10 |
||
if n<1 then do; say "***error!*** N can't be non-positive:" n; exit 13;end |
if n<1 then do; say "***error!*** N can't be non-positive:" n; exit 13;end |