Code for PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES. SUM=e1+e2+e3+... in C Programming
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
longint i,n;
double sum=0;
clrscr();
printf("\n ENTER THE VALUE OF N: ");
scanf("%ld",&n);
for(i=1;i<=n;i++)
sum=sum+exp(i);
textcolor(RED);
printf("\n");
cprintf(" THE SUM OF THIS SERIES IS %7.2lf\n",sum);
getch();
}
****************************** OUTPUT *********************************
ENTER THE VALUE OF N: 5
THE SUM OF THIS SERIES IS 233.20
***********************************************************************