0

Hey everyone. I have to write a program that estimates the value of mathematical constant e by using the following formula and i have to allow the user to enter the amount of terms to calculate. the only problem is i dont really know how to get started with this.

equation : e=1+1/1!+1/2!+1/3!...

i know that i am going to have to use a counter in this..to determine how many terms to calculate...would i create the counter and then ask the user to enter a value for counter? can you do that? i am just lost with this and if somebody could give me a push in the right direction i would appreciate it. Thanks!