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
1
Answer:
i dont knoe dkdmdmx
nxdk
Answered by
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
Social Sciences,
4 months ago
Computer Science,
4 months ago
Hindi,
4 months ago
Social Sciences,
9 months ago
History,
9 months ago
Chemistry,
1 year ago