Write the python program to input …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Har Har Mahadev 🙏 3 years, 10 months ago
- 5 answers
First Name 3 years, 10 months ago
s=1
for i in range (1,n+1):
⠀⠀⠀s=s+ sign*x**i
⠀⠀⠀s*= -1<br print("The sum of series is",s)
First Name 3 years, 10 months ago
n = int(input("Enter the value of n : "))
sign= -1
s=1 for i in range(1,n+1): ⠀⠀⠀s=s+ sign*x**i
⠀⠀⠀s*= -1
print("The sum os the series is", s)
Related Questions
Posted by Jaysundar Vc 5 months ago
- 0 answers
Posted by Payal Kumari 8 months, 1 week ago
- 0 answers
Posted by Catherine Tympuiñ 4 months, 1 week ago
- 0 answers
Posted by Catherine Tympuiñ 4 months, 1 week ago
- 1 answers
Posted by Sameeha _ 3 months, 3 weeks ago
- 0 answers
Posted by Manasvi Bhutada 5 months ago
- 1 answers
Posted by Sanchi Kohati 4 months, 1 week ago
- 0 answers
Posted by Jeevesh Jeevesh 4 months, 4 weeks ago
- 1 answers
Posted by S A 4 months, 2 weeks ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Har Har Mahadev 🙏 3 years, 10 months ago
1Thank You