Computer Science, asked by SourabhSM1, 9 months ago

Write a program to take a number from user and find the factorial using function Fact( ).using main function ​

Answers

Answered by Anonymous
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