Codewars:Sum of Digits / Digital Root
Codewars从零开始的python刷题路
Sum of Digits / Digital Root
题目描述:
Digital root is the recursive sum of all the digits in a number.
Given n, take the sum of the digits of n. If that value has more than one digit, continue reducing in this way until a single-digit n
原创
2021-11-04 15:17:27 ·
410 阅读 ·
0 评论