Sum of elements below main diagonal of matrix: Difference between revisions

Add BQN
(Promote to full task — 3 months with no concerns; plenty of language entries)
(Add BQN)
Line 205:
217 Sum of the 25 elements in the matrix
</pre>
 
=={{header|BQN}}==
<lang bqn>SumBelowDiagonal ← +´∘⥊⊢×(>⌜´)∘(↕¨≢)
 
matrix ← >⟨⟨ 1, 3, 7, 8,10⟩,
⟨ 2, 4,16,14, 4⟩,
⟨ 3, 1, 9,18,11⟩,
⟨12,14,17,18,20⟩,
⟨ 7, 1, 3, 9, 5⟩⟩
 
SumBelowDiagonal matrix</lang>
{{out}}
<pre>69</pre>
 
=={{header|C}}==
2,114

edits