Write a program to input the value of x and n and print the sum of the following series: 1-x+x^2 -x^3 +x^4 -...x^n
Answers
Answered by
2
please find the solution attached
Attachments:
Similar questions