Why i am getting wrong sum here?

前端 未结 0 628
庸人自扰
庸人自扰 2021-01-22 16:34

For example if am entering 20 for 5 times then i should get sum as 100 but i am getting it 99. Its happening for all the time i am getting sum as sum-1.

here is the code:

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