diff --git a/16/4 - Digital Root.py b/16/4 - Digital Root.py new file mode 100644 index 0000000..803bcaa --- /dev/null +++ b/16/4 - Digital Root.py @@ -0,0 +1,5 @@ +def digitalRoot(n): + if n<10: + return n + else: + return digitalRoot(digitalSum(n))