Software Development Exam  >  Software Development Questions  >  Sum of series program ? Start Learning for Free
Sum of series program ?
Most Upvoted Answer
Sum of series program ?
Here is source code of the C Program to Find the Sum of Series 1/1! + 2/2! + 3/3! + ……1/N!. The C program is successfully compiled and run on a Linux system. The program output is also shown below.

/*
* C Program to Find find Sum of the Series 1/1! + 2/2! + 3/3! + ……1/N!
*/
#include

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, i;
for (i = 1; i <= m;="">
{
f = f * i;
sum2 = sum2 +(i / f);
}
return(sum2);
}
Program Explanation
In this C Program, we are reading the limit using ‘number’ integer variable. The sumseries() function is used to compute the summation of the series by passing the limit ‘number’ variable value as argument.

advertisement
For loop is used to compute the summation for each integer values in the series up to the limit as mentioned by user in ‘number’ variable. Compute the factorial for the denominator by multiplying the value of ‘f’ variable with the value of ‘i’ variable.

Compute the summation of series by dividing the value of ‘i’ variable by the value of ‘f’ variable. Add the value with the value of ‘sum2’ variable. Print the sum of the series using printf statement.

hope it's help u :)
Community Answer
Sum of series program ?
For loop is used to compute the summation for each integer values in the series up to the limit as mentioned by user in number veritable. compute the factorial for the denominator by multiplying the value of f variable with the value of I I variable.... print the sum of the series using print f statement.
Explore Courses for Software Development exam

Top Courses for Software Development

Sum of series program ?
Question Description
Sum of series program ? for Software Development 2025 is part of Software Development preparation. The Question and answers have been prepared according to the Software Development exam syllabus. Information about Sum of series program ? covers all topics & solutions for Software Development 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Sum of series program ?.
Solutions for Sum of series program ? in English & in Hindi are available as part of our courses for Software Development. Download more important topics, notes, lectures and mock test series for Software Development Exam by signing up for free.
Here you can find the meaning of Sum of series program ? defined & explained in the simplest way possible. Besides giving the explanation of Sum of series program ?, a detailed solution for Sum of series program ? has been provided alongside types of Sum of series program ? theory, EduRev gives you an ample number of questions to practice Sum of series program ? tests, examples and also practice Software Development tests.
Explore Courses for Software Development exam

Top Courses for Software Development

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev