C Programming Code Examples C > Mathematics Code Examples C Program to Find Sum of the Series 1/1! + 2/2! + 3/3! + ........1/N! C Program to Find Sum of the Series 1/1! + 2/2! + 3/3! + ........1/N! #include <stdio.h> double sumseries(double); main() { double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum); } double sumseries(double m) { double sum2 = 0, f = 1, j; for (j = 1; j <= m; j++) { f = f * j; sum2 = sum2 +(j / f); } return(sum2); }