Prepare a program that reads two integers x and n,
and calculate exp using the following formula:
exp = 1+ x/1 +x2/2! +x3/3! + ...
x2,x3 means x power 2, x power 3.
The integer n is used to govern the number of terms that
will be used for obtaining the approximate value of exp.