Factorial of a number

Comments

2 comments on “Factorial of a number”


  • Ishita

    #factorial recursion
    num=5
    def facti(num):
    if num==0 or num==1:
    return 1
    else:
    return num*facti(num-1)

    num=5
    print(facti(num))