Name the program to find out the sum of following series. 1+2+3+4+5+6+7+8+9+10 class 7
Answers
Answered by
0
IncludeHelp
Home » C programs » C sum of series programs
C program to calculate the sum of the series 1-2+3-4+5-6+7-8...N terms
Given the series 1 -2+3-4+5-6+7-8 ... N terms, and we have to find the sum of all values using C program.
Submitted by Anshuman Das, on September 12, 2019
The series is: 1-2+3-4+5-6+7-8...N terms, we have to find out the sum up to Nth terms.
Solution:
Let's analyse this problem,
If we want Sum of this series up to 2nd term then sum will be:
1-2 =-1
Up to 3rd term:
1-2+3 =2
Up to 4th term
1-2+3-4 = -2
Up to 5th term:
1-2+3-4+5= 3
.
.
.
Similar questions
Math,
1 day ago
Biology,
1 day ago
Business Studies,
2 days ago
History,
2 days ago
English,
8 months ago