Python Program to Calculate Factorial of a Bigger number

In this post, we will learn about Python Program to calculate Factorial of a Bigger Number. In this, we will use a while loop to perform the program. Implementation: def fact(n):
f=1
while n:
f=f*n
n-=1
return f Output:
>>> fact(12)
479001600
>>> fact(20)
2432902008176640000 Happy Coding! Follow us on Instagram @programmersdoor Join us on Telegram @programmersdoor Please write comments if you find any bug in the above code/algorithm, or find other ways to solve the same problem. Follow Programmers Door for more. #blog #interview #placement #learn #computer #science

        Contact Us

programmersdoor@gmail.com

  • LinkedIn
  • Facebook
  • Instagram

©2023 by Programmers Door