i=300;while(i)[n=System.file.stdin|readline|int;("digital_root("+n|str+")="+(1+(8+n)%9)|str)|print;i=-1+i;];
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page