[BOJ](python) 10872 _ N!

berry ·2022년 2월 4일
0

Practice

목록 보기
21/23
post-thumbnail


문제


🏁 내 풀이

# 10872 _ N!

def facto(N):
    N = int(input())
    if N == 1:
        return N
    elif N < 1:
        return 1
    else:
        return N * facto(N-1)

print(facto(N))
profile
Engineer

0개의 댓글