+ 2

Plz tell me a program to implement following series

e= (1÷0!) + (1÷1!) + (1÷2!).........+(1÷n!) n = any positive number

7th Dec 2016, 7:13 PM
Shubhangi Ovhal
Shubhangi Ovhal - avatar
1 Respuesta
+ 1
double e =0; for (int i = 0; i < n ; i++) e+=1.0/fac (i); i assume you have working function for faculty called fac. also you should write a main function and print out something to test your code.
11th Dec 2016, 4:20 PM
Peter