Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Mathematics ProgramRSS Feeds

PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES.INPUT STEPS FROM KEYBORD.SUM=e1+e2+e3+...(TAKE EXP FUNCTION FROM MATH.H)

Posted By: Louis Evans     Category: C Programming     Views: 1949

WRITE A PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES.INPUT STEPS FROM KEYBORD.SUM=e1+e2+e3+...(TAKE EXP FUNCTION FROM MATH.H).

Code for PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES.INPUT STEPS FROM KEYBORD.SUM=e1+e2+e3+...(TAKE EXP FUNCTION FROM MATH.H) 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
  
Share: 



Louis Evans
Louis Evans author of PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES.INPUT STEPS FROM KEYBORD.SUM=e1+e2+e3+...(TAKE EXP FUNCTION FROM MATH.H) is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!