(int n)
| 18 | } |
| 19 | |
| 20 | public static int fact(int n) { |
| 21 | if(n == 0) { |
| 22 | return 1; |
| 23 | } |
| 24 | int fnm1 = fact(n-1); |
| 25 | int fn = n * fact(n-1); |
| 26 | return fn; |
| 27 | } |
| 28 | |
| 29 | public static int calcSum(int n) { |
| 30 | if(n == 1) { |
nothing calls this directly
no outgoing calls
no test coverage detected