write a program that includes a recursive function to evalute the first n terms in the series specified by y = 1 - x + (x^2)/2 - (x^3)/6 + (x^4)/24 + ...... + (-1)^n (x^n)/n! where n(defined as int ) and x ( defined as double ) are input parameters
#include <iostream>
usingnamespace std;
double se( int n , double x );
int main ()
{
int n, x;
cout << "enter an integer and a number of type double: " << endl;
cin >> n >> x;
cout << "the first " << n << "terms: " << se( n, x );
return 0;
}
double se( int n , double x )
{
if ( n == 0 )
return 1;
else
}
i only need to know what is the recersion step
so can u help me with that