a program to sum the following series. The user must enter the number of terms, n..before computing

前端 未结 0 766
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 00:17

sum = [1-2/3+2/5-8/5+16/9..+((-1)^n)*2n/(2n+1) ]

def main():
    n = int(input("Please enter a value for N:"))
    sum = 0
    for i in range(0,n):
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题