6 lines
96 B
Python
6 lines
96 B
Python
|
def digitalRoot(n):
|
||
|
if n<10:
|
||
|
return n
|
||
|
else:
|
||
|
return digitalRoot(digitalSum(n))
|