How to solve exp

What the is the best way to compute the formula down below in C++:

e^x = 1 + x/1! + x^2/2! + x^3/3! + ....

I just need keynotes from an expert in order to code it from my end.
Thanks in advance
Use a loop. All you need to know for input is how many times you want to run through the loop before returning a value for ex.

BTW, that's not how you calculate e.
http://www.math-magic.com/approx/e.htm

Good luck!
Topic archived. No new replies allowed.