✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
double func (double x, int n) {
if (n == 0) return 1;
if (x == 0) return 0;
if (n> 0) return x * func (x, n-1);
if (n <0) return func (x, n + 1) / x;
}
(C++)