Write a program that calculates Euler’s number e. To do this, first write a function that takes a parameter n, and returns the result (1+1/n)n. The limit of this function approaches e as n approaches infinity. In your main program, write a loop that calls this function with increasing values of n. On each iteration, multiply n by 2 (if you just add 1 to n each time, the algorithm won't work) and stop when the your new approximation and your previous approximation differ by less than 1e-8. Now you have a pretty good estimate. So in main(), print your best approximation and the number n that generated it.
OKAY
I thought I knew what was going on in class UNTIL I SAW THIS PROBLEM.
HELP r__r
He used a bunch of big words... what is a parameter and what is this approximation crap? I'm so confused... is there a thinger in #include <math.h> for this crap?