Skip to content
← Back to Community
Factorial Caculator
Profile icon
daCynicalbOi

This is a factorial calculator. A factorial is the product of an integer and all the integers below it. All you have to do is enter a number and hit enter. Below, will appear the factorial of the number. There is no limit on how big the number can be, but starting at 171!, the result will be inf. If you spam a lot of numbers and hit enter, there will be an error as you have exceeded the maximum recursion depth. Also, negatives, decimals, and fractions will not work in this calculator.

Voters
Profile icon
StarlingZZZ
Profile icon
daCynicalbOi
Comments
hotnewtop
Profile icon
StarlingZZZ
  • 3rd line should be
    n = int(input("Enter a number to calculate the factorial: "))
    instead of float
    Also spelling error on (calculate)