-module(s). -export([m/0]). m()->case io:fread('',"~d")of{_,[X]}->io:write(X*(X+1)*(2*X+1)div 6),io:nl(),m();_->0end.
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page