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