Computer Science, asked by mehmeh30, 6 months ago

Write a PYTHON program to find sum of the series
1 - X+ x2 - x3+.......xn​

Answers

Answered by clashroyal
3

Answer:

x = float (raw_input (“Enter value of x :”))

n = int (raw_input (“Enter value of n :”))

s = 0

for a in range (n + 1) :

s + = x**a

print “Sum of series”,s

Explanation:  

i think it is right

hope u like

Similar questions