bool allPositive(int A[], int n) { if(n == 0) { return true; } else if(A[n-1] <= 0) { return false; } else { return allPositive(A, n-1); } }