You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
119 B

8 years ago
import math
value = math.factorial(100)
string = str(value)
sum = 0
for i in string:
sum += int(i)
print(sum)