sum of square numbers by 51b

n=scan("stdin");write(n^3/3+n^2/2+n/6,"",1)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page