Skip to content

Instantly share code, notes, and snippets.

@pasali
Created March 31, 2011 15:44
Show Gist options
  • Save pasali/896605 to your computer and use it in GitHub Desktop.
Save pasali/896605 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#-*-coding:utf-8-*-
def fak(n):
i = 1
if n >= 0:
while n>1:
i*=n
n -= 1
print i
else:
print "negatif sayının faktöriyeli alınamaz."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment