Looking to find out how to write a program in C to calcilate Eulars number. The following formula is used for the e=1+1/1!+1/2!+1/3!+1/4!+1/5!+1/6!...+1/(n-1)!+1/n!.
The program needs to approximate e using a loop that terminates when the difference between 2 consecutive numbers differs by less than .0000001.
I have been working on this for a while and just need some pointers.
Thanks,
Sparky