multiplay without * using for loop

4 visualizaciones (últimos 30 días)
Abdulaziz Fallatah
Abdulaziz Fallatah el 16 de Nov. de 2019
Comentada: Star Strider el 16 de Nov. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by