what's the answer to Q1? I NEED ANSWER ASAP!! PLS!!
Attachments:
Answers
Answered by
1
Answer:
Program:-
n=int(input("Enter the limit:"))
s=0.0
i=1
while(i<=n):
if i%2==0:
s-=i/float(i+1)
else:
s+=i/float(i+1)
print(f"The sum of the series:{s}")
Attachments:
Similar questions