Skip to content

Instantly share code, notes, and snippets.

@russelnickson
Created December 1, 2009 19:49
Show Gist options
  • Save russelnickson/246579 to your computer and use it in GitHub Desktop.
Save russelnickson/246579 to your computer and use it in GitHub Desktop.
n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100! ??
a=100
b=0
f1=1
while a>1:
f1=a*f1
a-=1
f=f1
while f:
b=b+f%10
f/=10
print b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment