Sum and product of an array: Difference between revisions

Content added Content deleted
Line 830: Line 830:
set sum [tcl::mathop::+ {*}$arr]
set sum [tcl::mathop::+ {*}$arr]
set prod [tcl::mathop::* {*}$arr]</lang>
set prod [tcl::mathop::* {*}$arr]</lang>

=={{header|TI-83 BASIC}}==
Use the built-in functions <pre>sum()</pre> and <pre>prod()</pre>.


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