Question: The language has to be in C program 1. (a) rite a function, int factorial (int n), which returns n (the factorial of n, i
The language has to be in C program





1. (a) rite a function, int factorial (int n), which returns n (the factorial of n, i e. 1 x2 x3 x...xn.) (b) Using int factorial (int n) above, write a program to compute 2. We want to find one of the roots of a cubic equation given by which is between 0 and 1 by an iterative method. Modify the equation above to 1 x Start with an appropriate initial value and do the iteration above until it is convergent. For example, x -0.5, 1+ 0.52 1+0.82 1+0.6092 0.728
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
