0% found this document useful (0 votes)
14 views2 pages

Factorial

calculul unui factorial in python

Uploaded by

alex alex
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Factorial

calculul unui factorial in python

Uploaded by

alex alex
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

def factorial(n):

if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
vdef factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))
def factorial(n):
if n==0:
return 1
return factorial(n-1)*n
print(factorial(1))

You might also like