Pascal's triangle: Difference between revisions
add BQN
(Added solution for Action!) |
(add BQN) |
||
Line 830:
1 8 28 56 70 56 28 8 1
1 9 36 84 126 126 84 36 9 1 </pre>
=={{header|BQN}}==
Displays n rows.
<lang bqn>Pascal ← {(0⊸∾+∾⟜0)⍟(↕𝕩)⋈1}
•Show¨Pascal 6</lang>
<lang>⟨ 1 ⟩
⟨ 1 1 ⟩
⟨ 1 2 1 ⟩
⟨ 1 3 3 1 ⟩
⟨ 1 4 6 4 1 ⟩
⟨ 1 5 10 10 5 1 ⟩</lang>
=={{header|Bracmat}}==
|