clear; clc;

A = randi(100, 1, 5)
result = A(1);
loc = 1;
for i = 2 : length(A)
    if A(i) > result
        result = A(i);
        loc = i;
    end
end
disp("MAX = " + result);
disp("Location of MAX = " + loc);
[M, L] = max(A)