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에 대해 자세히 알아보기

질문:

2019년 11월 16일

댓글:

2019년 11월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by