Anonymous user
Sum of squares: Difference between revisions
added R
(Ada solution added) |
(added R) |
||
Line 249:
=={{header|Python}}==
<python>sum([x*x for x in [1, 2, 3, 4, 5]])</python>
=={{header|R}}==
arr <- c(1,2,3,4,5)
result <- sum(arr^2)
=={{header|Scheme}}==
|