#!ruby -n r=i=0;k=1;t=$_.to_i r+=t%10*k*=i+=1while 0<t/=10 p r
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page