Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def factorial_loop(x):
- i = 1;
- while(x > 0):
- i *= x
- x -= 1
- return i
- if __name__ == "__main__":
- print factorial_loop(int(sys.argv[1]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement