How can i solve this in c++

Calculate e^x according to following infinite series
e^x=1+x/1!+x^2/2!+x^3/3!+⋯,-∞<x<∞
Hint: Specify total number of term to be calculated (more terms will increase precision of the value of〖 e〗^x). Every term has power calculation of x in numerator and factorial calculation in denominator.
Last edited on
Topic archived. No new replies allowed.