Anonymous user
Pascal's triangle: Difference between revisions
m
final fix for problems due to the adding of apl
m (tried to fix other problems) |
m (final fix for problems due to the adding of apl) |
||
Line 74:
1 8 28 56 70 56 28 8 1
=={{header|APL}}==
Pascal' s triangle of order ⍵▼
<lang apl>▼
{A←0,⍳⍵ ⋄ ⍉A∘.!A}▼
</lang>▼
example▼
<lang apl>
{A←0,⍳⍵ ⋄ ⍉A∘.!A} 3
Line 95 ⟶ 103:
1 5 10 10 5 1</lang>
▲Pascal' s triangle of order ⍵
▲<lang apl>
▲{A←0,⍳⍵ ⋄ ⍉A∘.!A}
▲</lang>
▲example
=={{header|C++}}==
|