Find the product of every fourth integer between 4 and 44 (i.e., 4×8×12×…×44), storing the result as a
1 回表示 (過去 30 日間)
古いコメントを表示
So I generated this array to get every fourth integer from 4 to 44,
4:4:44;
but I am confused as to how I would multiply every fourth integer (4x8x12... x44) together so I could store the result as a.
I also have to use only one line of code so I don't know how to find the product and store it as a when I first needed to generate the array,
1 件のコメント
per isakson
2020 年 1 月 22 日
編集済み: per isakson
2020 年 1 月 22 日
Is that homework? Search for an appropriate function.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!