If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
引用格式
INFOZOU (2024). sum of all the multiples of 3 or 5 below 1000 (https://www.mathworks.com/matlabcentral/fileexchange/59558-sum-of-all-the-multiples-of-3-or-5-below-1000), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2016b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |