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!