Jump to content

Sum of first n cubes: Difference between revisions

→‎{{header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.
(Frink)
(→‎{{header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.)
Line 534:
 
==={{header|Tiny BASIC}}===
{{works with|TinyBasic}}
Limited to 0 through 19 because integers only go up to 32767.
<syntaxhighlight lang="tinybasicbasic">10 LET C = 0
20 LET N = 0
30 LET C = C + N*N*N
512

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.