Created
May 5, 2014 02:23
-
-
Save Ahmed-Fawzy/b871f164033ae7aef272 to your computer and use it in GitHub Desktop.
Project Euler - problem 20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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