procedure main() while write("digital_root(",n:=read(),")=",0<n%9|9) end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page