Question: Exercise# 1 Create a script file and type the following code - a = 5 ; b = 2 0 ; if ( a &&

Exercise#1
Create a script file and type the following code -
a=5;
b=20;
if (a&&b
disp('Line 1- Condition is true');
end
if ( a || b ) disp('Line 2- Condition is true');
end % lets change the value of a and b
a=0;
b=10;
if ( a && b ) disp('Line 3- Condition is true');
else
disp('Line 3- Condition is not true');
end
if ((a && b)) disp('Line 4- Condition is true');
end
 Exercise#1 Create a script file and type the following code -

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 Databases Questions!