""" Author :- A.M.Hasith Samoddya
    Created Date :- 2022-02-23
    Contact Details :- animatoon2007@gmail.com
"""


def factorial(y): #getting the value
    x=y+1 #addition 1
    answer=0 #final answer variable
    for i in range(1,x): #factorial calculation
        answer=answer*i 

    return answer #retuen final answer