Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #factorial.py MrG 2013.0517
- def fact(n):
- if n==0:
- return 1
- else:
- return n*fact(n-1)
- print "i\tfact(i)"
- for i in range(100):
- print i,"\t",fact(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement