Create a MATLAB program to answer the given problem
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?
MATLAB Code::
function different = similar(a, b, c)
if a == b
different = c
disp("c is different")
elseif b == c
different = a
disp("c is different")
else c == a
different = b
disp("c is different")
end
SCREENSHOTS:::
Get Answers For Free
Most questions answered within 1 hours.