+ 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 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.
11th Dec 2016, 4:20 PM
Peter