How does it know to avoid the common multiples?

前端 未结 0 1523
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 01:33

So here\'s the code for a program to calculate the sum of multiples of 3 and 5. But, why does the program not add those multiples that occur in both 3 and 5 twice.

         


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