Homepython factorial program Abhinav Guddu July 14, 2020 0 Comments Facebook Twitter def factorial(n): if (n==0 or n==1): return 1 else: return n * factorial(n-1) n= int(input("enter the number")) result = factorial(n) print(result) Tags python Facebook Twitter
Post a Comment