Please do this in MATLAB with the if-else conditions.
You're given three integers, a, b and c. It is guaranteed that two of these integers are equal to each other. What is the value of the third integer? The filename is Exer1 and Exer2
Matlab code:
a=input("Enter a value");
b=input("Enter b value");
c=input("Enter c value");
if a==b
fprintf("a and b are equla c vaulue is
%d",b);
elseif b==c
fprintf("b and c are equla a vaulue is
%d",a);
else
fprintf("a and c are equla b vaulue is
%d",b);
end
Output Screenshot:
Thank you have a great Day....:)-
Get Answers For Free
Most questions answered within 1 hours.