C Programming Tutorial

 
 
 
 
#include<stdio.h>
#include<conio.h>
#include<math.h>

void main()
{
    long int 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


***********************************************************************

 
 
Didn't find what you were looking for? Find more on PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES. SUM=e1+e2+e3+...