multiplay without * using for loop

1 view (last 30 days)
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.

Accepted Answer

Star Strider
Star Strider on 16 Nov 2019
  2 Comments
Abdulaziz Fallatah
Abdulaziz Fallatah on 16 Nov 2019
can you write the whole codes please ? thanks
Star Strider
Star Strider on 16 Nov 2019
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!