- The Modern C# Challenge
- Rod Stephens
- 74字
- 2021-08-13 15:23:53
10. Sums of multiples
Write a program that calculates the sums of multiples of 3 or 5 between zero and a given maximum value. For example, if the maximum is 30, then the program should calculate 3 + 5 + 6 + 9 + 10 + 12 + 15 + 18 + 20 + 21 + 24 + 25 + 27 + 30 = 225 because those are the multiples of 3 and 5.
推薦閱讀
- 實(shí)用運(yùn)籌學(xué):案例、方法及應(yīng)用
- 432級(jí)臺(tái)階之第2級(jí)臺(tái)階
- 仿真模型可移植性規(guī)范及其應(yīng)用
- 武俠數(shù)學(xué)
- 奧妙的數(shù)學(xué)問答
- 瘋狂的數(shù)學(xué)游戲
- 我的第一本趣味數(shù)學(xué)書2
- 走近費(fèi)曼叢書:費(fèi)曼講物理:相對(duì)論
- 數(shù)學(xué)建模33講:數(shù)學(xué)與繽紛的世界
- 數(shù)獨(dú)游戲全集
- 高等數(shù)學(xué)同步練習(xí)指導(dǎo)
- 排序問題的數(shù)學(xué)規(guī)劃松弛方法
- 你沒想到的數(shù)學(xué)
- 微積分Ⅱ
- 自然哲學(xué)的數(shù)學(xué)原理(漢譯世界學(xué)術(shù)名著叢書)