Calculate The Total Result of The Arithmetic Sequence With Big Number in Less Than 1 Second

后端 未结 0 1117
抹茶落季
抹茶落季 2020-12-05 23:09

How to Construct a Python 3 function sum(n) that takes a positive integer n as an input and perform the following computation:

sum(n)=5+10+⋯+         


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