Anonymous user
Sum and product of an array: Difference between revisions
m
Corrected language order.
m (Fixed a typo.) |
m (Corrected language order.) |
||
Line 970:
=={{header|TI-83 BASIC}}==
Use the built-in functions <pre>sum()</pre> and <pre>prod()</pre>.
=={{header|Trith}}==▼
<lang trith>[1 2 3 4 5] 0 [+] reduce</lang>▼
<lang trith>[1 2 3 4 5] 1 [*] reduce</lang>▼
=={{header|Toka}}==
Line 988 ⟶ 984:
( product )
reset 1 4 0 [ i foo array.get * ] countedLoop .</lang>
▲=={{header|Trith}}==
▲<lang trith>[1 2 3 4 5] 0 [+] reduce</lang>
▲<lang trith>[1 2 3 4 5] 1 [*] reduce</lang>
=={{header|UNIX Shell}}==
{{works with|NetBSD|3.0}}
|