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

Function func

codes/c/Code_3_06_3.c:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected