Question: Q1. The value of Eulers number - e is given by - e = 1 + (1/(1!)) + (1/(2!)) + (1/(3!)) + (1/(4!)) + Write

Q1. The value of Eulers number - e is given by - e = 1 + (1/(1!)) + (1/(2!)) + (1/(3!)) + (1/(4!)) + Write a C program to evaluate the value of e in a while loop that terminates when the difference between two successive approximations differs by less than 1e-6. Use the factorial function #include long factorial(int); int main() { int num=0; printf("Enter a number less than 20: "); scanf("%d",&num); if(0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!