Home Forums C Programming C program that computes the value of ex using a formula Re: Re: C program that computes the value of ex using a formula

#3501
GWILouisaxwzkla
Participant

try:

I didn’t know how many digit to output so I chose 12 like the example. You can change this by changing the number listed after the ‘.’ in the last printf() statements.

Theres an error in the code I posted for the approximation of e = 1 + 1/1! + 1/2! . Heres the proper code: