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

Function func

codes/cpp/Code_3_06_3.cpp:4–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int func(int N) {
5 if (N == 1) return 1; // このような場合分けすべきケースを「ベースケース」といいます
6 return func(N - 1) * N;
7}
8
9int main() {
10 int N;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected