def recur(n): if n<= 1: return 0 if n%3 == 0: return 1 + recur(n-1) else: return 0 + recur(n-1) n = int(input('자연수를 입력하세요: ')) p = recur(n) print(p)
To embed this project on your website, copy the following code and paste it into your website's HTML: