What's the sum of the first 556 multiples of 47

What's the sum of the first 556 multiples of 47?

1 件のコメント

Guillaume
Guillaume 2015 年 1 月 19 日
Looks like homework.
What is the difficulty in solving this yourself?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 1 月 19 日

0 投票

47*sum(0:555)

2 件のコメント

Kamini Sewda
Kamini Sewda 2015 年 1 月 19 日
Azzi, its not working.
Azzi Abdelmalek
Azzi Abdelmalek 2015 年 1 月 19 日
What does that mean? how it's not working?
David Sanchez
David Sanchez 2015 年 1 月 19 日

0 投票

% sum of the first 556 multiples of 47?
the_multiples = 47*(1:556);
the_sum = sum(the_multiples);

この質問は閉じられています。

タグ

質問済み:

2015 年 1 月 19 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by