What is the sum of the digits of the number 21000?
1 2 3 4 5 | number = str(2**1000) sum = 0 for d in number: sum = sum + int(d) print sum |
What is the sum of the digits of the number 21000?
1 2 3 4 5 | number = str(2**1000) sum = 0 for d in number: sum = sum + int(d) print sum |
You must be logged in to post a comment.