and all Course CCW 04. Simple Conditio dom number in rang Problem Description Th
ID: 3792267 • Letter: A
Question
Explanation / Answer
Code:
RandomNumber = 2+5*rand(1,1);
CheckRange = "The number is out of range.";
if (RandomNumber<10 && RandomNumber>0)
CheckRange = "The number is in range.";
end
disp(CheckRange);
Comment: We use assert when we need to throw an error. Normal if loop is sufficient for the checking this condition. All the best.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.