Skip to content

Instantly share code, notes, and snippets.

@Ahmed-Fawzy
Created May 5, 2014 02:23
Show Gist options
  • Save Ahmed-Fawzy/b871f164033ae7aef272 to your computer and use it in GitHub Desktop.
Save Ahmed-Fawzy/b871f164033ae7aef272 to your computer and use it in GitHub Desktop.
Project Euler - problem 20
#!/usr/bin/python
number = 100
n = 100
fact = 1
while number > 0 :
fact *= number
number -= 1
Sum = sum(map(int,str(fact)))
print Sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment