Digital root Fixed by teebee

begin var n:word;repeat read(n);writeln("digital_root(",n,")=",9-(-n)mod 9)until 1=0end.

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

download

return to the top page