Write a program to take a number from user and find the factorial using function Fact( ).using main function
Answers
Answered by
2
Answer:
"its a python program"
#factorial of number
def fact(n):
if n==1:
return 1
else:
factorial=n*fact(n-1)
return factorial
# main
num=int(input("enter the number"))
print(fact(num))
#hope it helps you
please mark brainliest
Similar questions