Sum of the series
Write a program to find the sum
S of the series where S = x - x^3 + x^5 + ....... upto N terms.
Sample Input 1
2
5
Sample Output 1
410
to solve this approch
if i value is even:
result = summation of the term value and then added to the result
else :
result = Subtraction of the term value and then added to the result
Comments