[백준] 10872번 : 팩토리얼 - Python(파이썬)

강재원·2022년 10월 6일
0

[코딩테스트] Python

목록 보기
102/200



https://www.acmicpc.net/problem/10872

a=input()
a=int(a)
num=1
if a==0 :
    print(1)
else :
    for i in range(1,a+1) :
        num=num*i
    print(num)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글