Sum of first n cubes: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
(Add Red)
m (→‎{{header|R}}: Syntax highlighting.)
Line 1,818:
=={{header|R}}==
This only takes one line.
<lang Rrsplus>cumsum((0:49)^3)</lang>
{{out}}
<pre> [1] 0 1 9 36 100 225 441 784 1296 2025 3025 4356 6084 8281 11025 14400
331

edits