Anonymous user
Sum and product of an array: Difference between revisions
added R
m (→{{header|Python}}: An interpreter line in a comment? Really?) |
(added R) |
||
Line 490:
total = numbers.sum()
product = numbers.prod()
=={{header|R}}==
arr <- c(1,2,3,4,5)
total <- sum(arr)
product <- prod(arr)
=={{header|Raven}}==
|