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