Sum and product of an array: Difference between revisions

Content added Content deleted
m (→‎{{header|Haskell}}: Slightly expanded example)
(→‎{{header|TI-83 BASIC}}: Add an example)
Line 2,317: Line 2,317:


=={{header|TI-83 BASIC}}==
=={{header|TI-83 BASIC}}==
Use the built-in functions <pre>sum()</pre> and <pre>prod()</pre>.
Use the built-in functions <code>sum()</code> and <code>prod()</code>.
<lang ti83b>seq(X,X,1,10,1)→L₁
{1 2 3 4 5 6 7 8 9 10}
sum(L₁)
55
prod(L₁)
3628800</lang>


=={{header|Toka}}==
=={{header|Toka}}==