| 9 | |
| 10 | using namespace std; |
| 11 | int array_sum(int n,int arr[]){ |
| 12 | if(n<0) return 0; |
| 13 | return array_sum(n-1,arr)+arr[n]; |
| 14 | } |
| 15 | int digit_sum(int n){ |
| 16 | if(n==0) return 0; |
| 17 | return digit_sum(n/10)+ n%10; |
nothing calls this directly
no outgoing calls
no test coverage detected