Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Factorial of a number

Comments

One comment 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))