Python while loop to find Factorials of Number
def factorial (n): m=1 while n>=1: m=m*n n=n-1 return m print factorial(53)
Output:4274883284060025564298013753389399649690343788366813724672000000000000
def factorial (n): m=1 while n>=1: m=m*n n=n-1 return m print factorial(53)
Output:4274883284060025564298013753389399649690343788366813724672000000000000
Comments
Post a Comment