Sum of elements below main diagonal of matrix: Difference between revisions
Sum of elements below main diagonal of matrix (view source)
Revision as of 14:29, 13 November 2021
, 2 years agoAdd BQN
(Promote to full task — 3 months with no concerns; plenty of language entries) |
Not a robot (talk | contribs) (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}}==
|