Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
MAT Lab Basics. I need to know who to do these six things below.
조회 수: 1 (최근 30일)
이전 댓글 표시
I just need to know how to do these six things.
1. Find the largest number between two numbers
2. Find the largest number between three numbers
3. Review if three given numbers are in ascending order
4. Sum the numbers between two given numbers (inclusive)
5. Review if a number is a multiple of other number
6. Review if a number is a prime number
댓글 수: 1
Walter Roberson
2019년 10월 10일
if A < B & A < C
smallest is A
elseif A > B & A < C
Smallest is?
elseif A < B & A > C
Smallest is?
elseif A > B & A > C
Smallest is?
else
Smallest is?
end
There are 6 possibilities that you can test one after the other.
답변 (1개)
Samatha Aleti
2019년 10월 15일
You can use functions like “isprime”,”divisors”, “sort” to perform required operations. Following are the documentation links to each of these functions:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!