//program to find sum of the series using user defined function #include<iostream.h> #include<conio.h> #include<stdio.h> void main() { clrscr(); long x,sum,term,fact=1 int i,n; cout<<"\n Enter the Sum of x and n : "; cin>>x>>n; sum=1+i;term=1; for(i=1;i<=n;i++) { fact=fact*i; term=term+(x/fact); sum=fact,term; } cout<<"\n The Sum of the Series = "<<sum; getch(); } getch(); }