MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / factorial

Method factorial

Programs/FactorialDemo.java:10–15  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

8
9 }
10 static int factorial(int n){
11 if (n == 0)
12 return 1;
13 else
14 return(n * factorial(n-1));
15 }
16
17}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected