Question: #include double getvalue ( double , int ) ; int factorial ( int ) ; int main ( ) { int n; double x; double
#include
double getvalue double int;
int factorial int;
int main
int n;
double x;
double series;
printfThis program calculates ex
;
printfusing sum of xkk
;
printfEnter x n : ;
scanflfd&x&n;
printfxn lf d
xn;
series getvaluexn;
printfex lf
series;
printfelf f
x series;
return;
double getvalue xn
double x;
int n;
int k;
double value ;
double xpow ;
for k ; k n; k
value xpow factorialk;
xpow xpow x;
returnvalue;
int factorial number
int number;
int j;
int fact ;
for j ; j number; j
fact fact j;
returnfact;
whats wrong with this code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
