i need help with a homework problem, it's writing a program that approximates the sum of
1 + x/1! + (x^2)/2! + (x^3)/3! + ... + (x^n)/n!
we're supposed to write a program that takes a value x as input and outputs this sum for n taken to be each of the values of 1 to 100. and we're supposed to have the ouput be in a 1o X 10 form, so like 10 values on 10 lines.
i know we are supposed to use a nested loop. a for loop in a a do while loop, but i just can't figure out how to write the code for the summation, i can do it mathematically on paper, but it just doesn't make sense to me in writing it in source code. please if you could help me i would greatly appreciate it.
-M