```
#factorial of number
def fact(x):
if x == 0:
return 1
return x * fact(x - 1)
x=int(input("Enter the number"))
print(fact(x))
```

**Output:**

**Enter the number**

**5**

**120**

top of page

Hurry Up! And Get Flat 10% Discount On Your First Order We are available by 24/7 for your support!

+91 82 67 81 38 69

bottom of page