<reponame>ati-ozgur/course-python
def factorial(n):
	if n > 1:
		#call itself
		return n * factorial(n-1)
	else:
		return 1 # exit condition




#print(factorial(0)) # by definition should be 1 
#print(factorial(1))  # by definition should be 1 
#print(factorial(2))
#print(factorial(3))
#print(factorial(4))
print(factorial(5))



def factorial(n):
	if n > 1:
		#call itself
		return n * factorial(n-1)
	else:
		return 1 # exit condition




#print(factorial(0)) # by definition should be 1 
#print(factorial(1))  # by definition should be 1 
#print(factorial(2))
#print(factorial(3))
#print(factorial(4))
print(factorial(5))
#call itself # exit condition #print(factorial(0)) # by definition should be 1 #print(factorial(1))  # by definition should be 1 #print(factorial(2)) #print(factorial(3)) #print(factorial(4))