Question: Given a = - 2 , b = 3 , c = 5 . For the following script, select the correct display, and paste the

Given a =-2, b =3, c =5. For the following script, select the correct display, and paste the display to the blank.
a =-2; b =3; c =5;
if( a - b > a - c )
disp('b is less than c')
else
disp('b is not less than c')
end
x = b < a;
if(x)
if( c <= b)
disp('ans1')
else
disp('ans2')
end
elseif( b <= c)
disp('a is less than c');
else
disp('no answer');
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!