multiplay without * using for loop

4 vues (au cours des 30 derniers jours)
Abdulaziz Fallatah
Abdulaziz Fallatah le 16 Nov 2019
Commenté : Star Strider le 16 Nov 2019
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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by