Create 4 - Digital Root.py
This commit is contained in:
parent
9b21cea8b6
commit
d13bb10ae7
5
16/4 - Digital Root.py
Normal file
5
16/4 - Digital Root.py
Normal file
@ -0,0 +1,5 @@
|
||||
def digitalRoot(n):
|
||||
if n<10:
|
||||
return n
|
||||
else:
|
||||
return digitalRoot(digitalSum(n))
|
Loading…
Reference in New Issue
Block a user