| 9 | |
| 10 | using namespace std; |
| 11 | void func(int n){ |
| 12 | if(n==0) return; |
| 13 | func(n-1);// OUTPUT 1 2 3 4 5 |
| 14 | cout<<n<<endl; |
| 15 | // cout<<n<<endl; OUTPUT 5 4 3 2 1 |
| 16 | // func(n-1); |
| 17 | } |
| 18 | int fact(int n){ |
| 19 | if(n==0) return 1; |
| 20 | return fact(n-1)*n; |
nothing calls this directly
no outgoing calls
no test coverage detected