chul's thinking
Chul n Ju
(281)
알쓸신잡
(4)
Short Thinking
(92)
Coding
(53)
CodeUp
(39)
Python
(14)
Chul's Family 09'
(0)
Chul
(0)
Kyung-Ju
(0)
Ju-Won
(0)
Camera_Lecture
(27)
Camera_Wants
(9)
Work
(32)
GSM
(1)
WCDMA
(3)
Embedded
(23)
Clien
(37)
New
(16)
Info
(1)
Magazine
(0)
혈액형
(0)
Spec
(2)
Info
(4)
food
(0)
engadget
(0)
Etc.
(0)
Life
(3)
Util
(1)
Music
(0)
Funny
(0)
Photo_Chul n Ju 08'
(0)
Chul
(0)
Ju
(0)
Photo_Wedding
(0)
Travel
(0)
Chul n Ju 08'
(0)
Paris
(0)
Praha
(0)
Wien
(0)
Salsbrug
(0)
Muchen
(0)
Amsteldam
(0)
Photo_
(0)
200708_Tailand
(0)
200801_SerkYoung Wedding
(0)
200803_Guam
(0)
Family
(0)
Company
(0)
Etc.
(0)
Photo_Camera
(0)
Barnak IIIf
(0)
Pentax Me Super
(0)
Contax G1
(0)
Pentax MX
(0)
Short_Articles
(12)
HOME
TAG
MEDIA LOG
LOCATION LOG
GUEST BOOK
ADMIN
WRITE
=3=3=3ㅌㅌ
simix.net 에 오신걸 환영 합니다..^^
/
/
블로그 내 검색
1912 : (재귀함수) 팩토리얼 계산
chulpark
2023. 3. 15. 18:31
2023. 3. 15. 18:31
https://codeup.kr/problemsetsol.php?psid=21
import sys
sys.setrecursionlimit(10**7)
n = int(input())
def add_ft(a, sum):
if a < n+1 :
sum = sum * a
return add_ft(a + 1, sum)
else:
return sum
print(add_ft(2, 1))
공유하기
게시글 관리
chul's thinking
저작자표시
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바