Sum all the digits of an integer.
Given a string representing an positive integer, return the sum of all the digits of that integer.
# | Size | % | Users |
---|---|---|---|
#1 | 25 c. | Top 55% | +34 |
#2 | 26 c. | Top 60% | |
#3 | 27 c. | Top 65% | |
#4 | 28 c. | Top 69% | L |
#5 | 31 c. | Top 70% | |
#6 | 32 c. | Top 73% | |
#7 | 33 c. | Top 74% | |
#8 | 34 c. | Top 81% | |
#9 | 35 c. | Top 85% | |
#10 | 36 c. | Top 86% | |
#11 | 37 c. | Top 88% | |
#12 | 38 c. | Top 90% | |
#13 | 39 c. | Top 94% | |
#14 | 45 c. | Top 96% | |
#15 | 47 c. | Top 99% | |
#16 | 49 c. | Top 100% |