MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / func

Function func

codes/python/Code_3_06_3.py:1–4  ·  view source on GitHub ↗
(N)

Source from the content-addressed store, hash-verified

1def func(N):
2 if N == 1:
3 return 1 # このような場合分けすべきケースを「ベースケース」といいます
4 return func(N - 1) * N
5
6N = int(input())
7print(func(N))

Callers 1

Code_3_06_3.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected