multiplay without * using for loop
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Star Strider
2019년 11월 16일
댓글 수: 2
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개)
참고 항목
카테고리
Help Center 및 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!