write a program to calculate ex using the


Write a program to calculate e^x using the formula:

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

Allow the user to enter the integer number x, then do the calculation in a loop (for or while), taking it out ten iterations. For example, if the user entered 2, the program would calculate

e^2 = 1 + 2/1! + 2^2/1! + 2^3/3! + ..... + 2^9/9! + 2^10/10!

Note: Make the factorial calculation a serperate module and call if from main( ).

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a program to calculate ex using the
Reference No:- TGS0418221

Expected delivery within 24 Hours