• + 0 comments

    Non-recursive python solution...

    n = int(input())
    
    fact = 1
    while n > 1:
        fact *= n
        n -= 1
    
    print(fact)