Write a MATLAB program that prompts the user to enter 2 natural number ‘a’ and ‘b’ and compute a*b without using the * operator.
Write a MATLAB program that prompts the user to enter 2 natural number ‘a’ and ‘b’ and compute a^b without using the ^ operator.

 採用された回答

Star Strider
Star Strider 2019 年 11 月 16 日

0 投票

2 件のコメント

Abdulaziz Fallatah
Abdulaziz Fallatah 2019 年 11 月 16 日
can you write the whole codes please ? thanks
Star Strider
Star Strider 2019 年 11 月 16 日
As always, my pleasure.
This looks very much like homework, so I will instead direct you to the Wikipedia article on Logarithm. See specifically the secion on Logarithmic identities.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by