This C program evaluates the expression
1 + 2!/3! + 3!/4! + 4!/5! + ... n!/(n+1)!
The program evaluates the expression for the value of n.
Notice in this program that, in the function part, we have skipped the initialization in the for loop. This is because we have initialized the variable earlier.
Comments
Post a Comment