1 2 3 4 5 6 7 8
# C/C++로 배우는 자료구조론 연습문제 4.11 def print1toN(n) print1toN(n-1) if n > 1 print n end print1toN(5)
1
12345