Initial commit
This commit is contained in:
9
src/task16 - Power digit sum.py
Normal file
9
src/task16 - Power digit sum.py
Normal file
@@ -0,0 +1,9 @@
|
||||
num = 2**1000
|
||||
result = 0
|
||||
|
||||
while num > 0:
|
||||
d = num%10
|
||||
num = num//10
|
||||
result += d
|
||||
|
||||
print(result)
|
Reference in New Issue
Block a user