Please help with this

A for loop that multiplies all even numbers from 2 to 10.

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2015 年 11 月 23 日

0 投票

prod(2:2:10);

2 件のコメント

daniel clarke
daniel clarke 2015 年 11 月 23 日
How would you put that into the for loop?
Torsten
Torsten 2015 年 11 月 23 日
編集済み: Torsten 2015 年 11 月 23 日
out = 1;
for jj = 2:2:10
out = out*jj;
end

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2015 年 11 月 23 日

編集済み:

2015 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by