Computer Science, asked by akash6623, 9 months ago

Write a program to input the value of x and n and print the sum of the following series :
• 1+ x + x²
+ x + x + ........."
1-x + x2 - x3 + x4 ..
x² x²
2 3 4
11
x
x +
-
+
n
x +
x
3!
+
2!
4!
n!​

Answers

Answered by mariyakutub1
1

Answer:

i dont knoe dkdmdmx

nxdk

Answered by pke3s1ha7
1

Answer:

x=float(input("Enter the value of x:"))

n=int(input("Enter the value of n:"))

s=0

for a in range (n+1):

   s+=x**a

print("sum of series is",s)

Explanation:

Similar questions