Jump to content

Sum and product of an array: Difference between revisions

m (Reorder Julia to be before Lasso)
Line 869:
 
=={{header|Julia}}==
<lang julia>julia> sum(1:5[4,6,8])
18
15
 
julia> prod(1:5)
120</lang>
 
julia> prod(1:5[4,6,8])
120192</lang>
 
=={{header|Lang5}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.