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 |