3 more problems
This commit is contained in:
13
problem_20.py
Normal file
13
problem_20.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
import math
|
||||
|
||||
value = math.factorial(100)
|
||||
|
||||
string = str(value)
|
||||
|
||||
sum = 0
|
||||
|
||||
for i in string:
|
||||
sum += int(i)
|
||||
|
||||
print(sum)
|
||||
Reference in New Issue
Block a user