#PROGRAM TO CALCULATE THE FACTORIAL USING RECURSION def factorial(n): if n==1: return 1 elif n>1: return n*factorial(n-1) #MAIN a=int(input('enter the number for the factorial')) print('Factorial for the number',a,'is :',factorial(a))
SMART BEGINERS is used to help the students in python and java programs so that they can get help through it.smartbeginers is generally helpful to the students. link for this is #smartbeginers.blogspot.com # SMARTBEGINERS