+ 2
Plz tell me a program to implement following series
e= (1÷0!) + (1÷1!) + (1÷2!).........+(1÷n!) n = any positive number
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.