Factoral


#1

def factorial(x):
n = 0
while x > 0 and n < x:
x*=x-n
n+=1
return x

what is wrong with my code? It said that I should check for infinite Loops.


#2

x will always be greater than 0